From: Marcus Krassmann Date: Thu, 14 Jun 2012 14:00:13 +0000 (+0200) Subject: Fixed test description for diff test "1 - 0.5" X-Git-Tag: 1.7.0~18^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F337%2Fhead;p=thirdparty%2Fmoment.git Fixed test description for diff test "1 - 0.5" --- diff --git a/test/moment/diff.js b/test/moment/diff.js index 504d16497..849c16615 100644 --- a/test/moment/diff.js +++ b/test/moment/diff.js @@ -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(),