]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[tests] Fix the humanize test message (#5400)
authorHYUNSANG HAN <gustkd3@gmail.com>
Thu, 23 Apr 2020 14:25:03 +0000 (23:25 +0900)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2020 14:25:03 +0000 (17:25 +0300)
src/test/moment/duration.js

index 3a6e9e161c37dfa9f10a0148df6325095b6d2f53..135a9a3c2ebdb40c7422b321de74c5d1fd81f4b8 100644 (file)
@@ -456,7 +456,7 @@ test('humanize', function (assert) {
     assert.equal(moment.duration({days: 548}).humanize(),    '2 years',       '548 days = 2 years');
     assert.equal(moment.duration({years: 1}).humanize(),     'a year',        '1 year = a year');
     assert.equal(moment.duration({years: 5}).humanize(),     '5 years',       '5 years = 5 years');
-    assert.equal(moment.duration(7200000).humanize(),        '2 hours',       '7200000 = 2 minutes');
+    assert.equal(moment.duration(7200000).humanize(),        '2 hours',       '7200000 = 2 hours');
 });
 
 test('humanize duration with suffix', function (assert) {