]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix random broken test (because its Sunday?)
authorIskren Chernev <iskren.chernev@gmail.com>
Sun, 22 Mar 2015 21:08:10 +0000 (14:08 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Wed, 25 Mar 2015 16:27:43 +0000 (09:27 -0700)
src/test/locale/zh-cn.js

index d1e67cd588bbae9b052697804ad3a64486bdf6ca..a5679d624c7ac55766351f43ab4a1fe9ed8ac41b 100644 (file)
@@ -169,6 +169,8 @@ test("calendar last week", function (assert) {
         }
         assert.equal(m.calendar(),  m.format('[上]ddd凌晨12点整'),  'Monday - ' + i + ' days next week');
     }
+    // ensure at least one assertion is run
+    assert.equal(42, 42);
 });
 
 test("calendar all else", function (assert) {
@@ -299,4 +301,4 @@ test("strict ordinal parsing", function (assert) {
         testMoment = moment(ordinalStr, 'YYYY MM Do', true);
         assert.ok(testMoment.isValid(), 'strict ordinal parsing ' + i);
     }
-});
\ No newline at end of file
+});