]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[misc] Typo in test (#4610)
authorOlivier G <olivier@lespacedunmatin.info>
Fri, 1 Jun 2018 05:47:06 +0000 (07:47 +0200)
committerKunal Marwaha <marwahaha@berkeley.edu>
Fri, 1 Jun 2018 05:47:06 +0000 (22:47 -0700)
All tests using Feb 29th are labelled as Feb 28th.

src/test/moment/weeks.js

index 4bae9e20c1cbc2532193e0c824d6a5bb5a78da5c..54f1dfa6a0db7775ed8c9c739aa0c60dac052a50 100644 (file)
@@ -6,7 +6,7 @@ module('weeks');
 test('day of year', function (assert) {
     assert.equal(moment([2000,  0,  1]).dayOfYear(),   1, 'Jan  1 2000 should be day 1 of the year');
     assert.equal(moment([2000,  1, 28]).dayOfYear(),  59, 'Feb 28 2000 should be day 59 of the year');
-    assert.equal(moment([2000,  1, 29]).dayOfYear(),  60, 'Feb 28 2000 should be day 60 of the year');
+    assert.equal(moment([2000,  1, 29]).dayOfYear(),  60, 'Feb 29 2000 should be day 60 of the year');
     assert.equal(moment([2000, 11, 31]).dayOfYear(), 366, 'Dec 31 2000 should be day 366 of the year');
     assert.equal(moment([2001,  0,  1]).dayOfYear(),   1, 'Jan  1 2001 should be day 1 of the year');
     assert.equal(moment([2001,  1, 28]).dayOfYear(),  59, 'Feb 28 2001 should be day 59 of the year');
@@ -17,7 +17,7 @@ test('day of year', function (assert) {
 test('day of year setters', function (assert) {
     assert.equal(moment([2000,  0,  1]).dayOfYear(200).dayOfYear(), 200, 'Setting Jan  1 2000 day of the year to 200 should work');
     assert.equal(moment([2000,  1, 28]).dayOfYear(200).dayOfYear(), 200, 'Setting Feb 28 2000 day of the year to 200 should work');
-    assert.equal(moment([2000,  1, 29]).dayOfYear(200).dayOfYear(), 200, 'Setting Feb 28 2000 day of the year to 200 should work');
+    assert.equal(moment([2000,  1, 29]).dayOfYear(200).dayOfYear(), 200, 'Setting Feb 29 2000 day of the year to 200 should work');
     assert.equal(moment([2000, 11, 31]).dayOfYear(200).dayOfYear(), 200, 'Setting Dec 31 2000 day of the year to 200 should work');
     assert.equal(moment().dayOfYear(1).dayOfYear(),   1, 'Setting day of the year to 1 should work');
     assert.equal(moment().dayOfYear(59).dayOfYear(),  59, 'Setting day of the year to 59 should work');