From: Tim Wood Date: Mon, 20 May 2013 16:17:48 +0000 (-0700) Subject: Updating tests for #788 X-Git-Tag: 2.1.0~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=431dbbe7a6a706127981abaef691eb7b7de072fd;p=thirdparty%2Fmoment.git Updating tests for #788 --- diff --git a/test/moment/create.js b/test/moment/create.js index c932732f5..96d058fad 100644 --- a/test/moment/create.js +++ b/test/moment/create.js @@ -235,9 +235,9 @@ exports.create = { "string with array of formats" : function(test) { test.expect(3); - test.equal(moment('13-02-1999', ['MM-DD-YYYY', 'DD-MM-YYYY']).format('MM DD YYYY'), '02 13 1999', 'switching month and day'); - test.equal(moment('02-13-1999', ['MM/DD/YYYY', 'YYYY-MM-DD', 'MM-DD-YYYY']).format('MM DD YYYY'), '02 13 1999', 'year last'); - test.equal(moment('1999-02-13', ['MM/DD/YYYY', 'YYYY-MM-DD', 'MM-DD-YYYY']).format('MM DD YYYY'), '02 13 1999', 'year first'); + test.equal(moment('11-02-1999', ['MM-DD-YYYY', 'DD-MM-YYYY']).format('MM DD YYYY'), '02 11 1999', 'switching month and day'); + test.equal(moment('02-11-1999', ['MM/DD/YYYY', 'YYYY-MM-DD', 'MM-DD-YYYY']).format('MM DD YYYY'), '02 11 1999', 'year last'); + test.equal(moment('1999-02-11', ['MM/DD/YYYY', 'YYYY-MM-DD', 'MM-DD-YYYY']).format('MM DD YYYY'), '02 11 1999', 'year first'); test.done(); },