]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fixed test description for diff test "1 - 0.5" 337/head 338/head
authorMarcus Krassmann <marcus.krassmann@syn-online.de>
Thu, 14 Jun 2012 14:00:13 +0000 (16:00 +0200)
committerMarcus Krassmann <marcus.krassmann@syn-online.de>
Thu, 14 Jun 2012 14:00:13 +0000 (16:00 +0200)
test/moment/diff.js

index 504d1649706ee733251891bfa37a312f8d5b57b9..849c16615f423a61136baee15250c8d2364bf322 100644 (file)
@@ -5,7 +5,7 @@ exports.diff = {
         test.expect(5);
 
         test.equal(moment(1000).diff(0), 1000, "1 second - 0 = 1000");
-        test.equal(moment(1000).diff(500), 500, "1 second - .5 second = -500");
+        test.equal(moment(1000).diff(500), 500, "1 second - 0.5 seconds = 500");
         test.equal(moment(0).diff(1000), -1000, "0 - 1 second = -1000");
         test.equal(moment(new Date(1000)).diff(1000), 0, "1 second - 1 second = 0");
         var oneHourDate = new Date(),