From: Iskren Chernev Date: Mon, 14 Oct 2013 07:30:41 +0000 (-0700) Subject: Another breaking test because of stricter iso parser X-Git-Tag: 2.4.0~15^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1185%2Fhead;p=thirdparty%2Fmoment.git Another breaking test because of stricter iso parser 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 :) --- diff --git a/test/moment/create.js b/test/moment/create.js index fc0da3dfd..ab098a83a 100644 --- a/test/moment/create.js +++ b/test/moment/create.js @@ -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(); },