]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fix broken tests
authorIskren Chernev <iskren.chernev@gmail.com>
Mon, 4 May 2015 16:23:41 +0000 (09:23 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 4 May 2015 16:23:41 +0000 (09:23 -0700)
src/test/moment/locale.js

index 70247d3c66cb4485ce15205013d2ac6018eae5b6..39384d3509a7a75620206b3e4484fef7b7c26f6f 100644 (file)
@@ -237,8 +237,8 @@ test('duration deprecations', function (assert) {
 });
 
 test('from and fromNow with invalid date', function (assert) {
-    assert.equal(moment(NaN).from(), 'Invalid Date', 'moment.from with invalid moment');
-    assert.equal(moment(NaN).fromNow(), 'Invalid Date', 'moment.fromNow with invalid moment');
+    assert.equal(moment(NaN).from(), 'Invalid date', 'moment.from with invalid moment');
+    assert.equal(moment(NaN).fromNow(), 'Invalid date', 'moment.fromNow with invalid moment');
 });
 
 test('from relative time future', function (assert) {