]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Test messages were not accurate to the tests #364
authorTim Wood <washwithcare@gmail.com>
Wed, 25 Jul 2012 17:40:19 +0000 (10:40 -0700)
committerTim Wood <washwithcare@gmail.com>
Wed, 25 Jul 2012 17:40:19 +0000 (10:40 -0700)
test/moment/days_in_month.js

index 52be9b401a433fc30b21ac3830551d83bb9f7914..ffa2546731f0665b4c5d3655b33c9fbd7a7c97ad 100644 (file)
@@ -19,8 +19,8 @@ exports.days_in_month = {
 
     "days in month leap years" : function(test) {
         test.expect(4);
-        test.equal(moment([2010, 1]).daysInMonth(), 28, "Feb 2010 should have 29 days");
-        test.equal(moment([2100, 1]).daysInMonth(), 28, "Feb 2100 should have 29 days");
+        test.equal(moment([2010, 1]).daysInMonth(), 28, "Feb 2010 should have 28 days");
+        test.equal(moment([2100, 1]).daysInMonth(), 28, "Feb 2100 should have 28 days");
         test.equal(moment([2008, 1]).daysInMonth(), 29, "Feb 2008 should have 29 days");
         test.equal(moment([2000, 1]).daysInMonth(), 29, "Feb 2000 should have 29 days");
         test.done();