From d4666fe62cb5b483a69cb7647c1d6a3ed161bf2d Mon Sep 17 00:00:00 2001 From: Iskren Chernev Date: Mon, 14 Oct 2013 00:30:41 -0700 Subject: [PATCH] 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 :) --- test/moment/create.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); }, -- 2.47.2