Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Another breaking test because of stricter iso parser #1185

Merged
merged 1 commit into from

2 participants

@ichernev
Owner

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 :)

@ichernev ichernev 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 :)
d4666fe
@icambron icambron merged commit 1cdeda0 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 14, 2013
  1. @ichernev

    Another breaking test because of stricter iso parser

    ichernev authored
    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 :)
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 2 deletions.
  1. +1 −2  test/moment/create.js
View
3  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();
},
Something went wrong with that request. Please try again.