]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Updating tests for #788
authorTim Wood <washwithcare@gmail.com>
Mon, 20 May 2013 16:17:48 +0000 (09:17 -0700)
committerTim Wood <washwithcare@gmail.com>
Mon, 20 May 2013 16:17:48 +0000 (09:17 -0700)
test/moment/create.js

index c932732f50d0e918ac5abad2d32c4844ef7086fd..96d058fad32a7e54d1081e05b85d182a72db84a6 100644 (file)
@@ -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();
     },