]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Another breaking test because of stricter iso parser 1185/head
authorIskren Chernev <iskren.chernev@gmail.com>
Mon, 14 Oct 2013 07:30:41 +0000 (00:30 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 14 Oct 2013 07:30:41 +0000 (00:30 -0700)
This time there is am added at the end, which was never parsed as part of iso
format, so if it was pm it would result in a wrong parse.

Deleting this test. Docs don't say this is possible, right :)

test/moment/create.js

index fc0da3dfdc714024df6180fd51fff13a6efa9ea6..ab098a83aa40d45c25ebdcdd40dd251dbef93ff8 100644 (file)
@@ -112,10 +112,9 @@ exports.create = {
     },
 
     "string without format" : function (test) {
-        test.expect(3);
+        test.expect(2);
         test.ok(moment("Aug 9, 1995").toDate() instanceof Date, "Aug 9, 1995");
         test.ok(moment("Mon, 25 Dec 1995 13:30:00 GMT").toDate() instanceof Date, "Mon, 25 Dec 1995 13:30:00 GMT");
-        test.equal(new Date(2013, 8, 13, 7, 26).valueOf(), moment("2013-09-13 7:26 am").valueOf(), "2013-09-13 7:26 am");
         test.done();
     },