From: Nicholas Bollweg Date: Wed, 14 Aug 2013 18:17:32 +0000 (-0400) Subject: jslint must be appeased... again X-Git-Tag: 2.3.0~10^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b993dc61fb58d469a3fea7d0b764514c0e1a70d3;p=thirdparty%2Fmoment.git jslint must be appeased... again --- diff --git a/test/moment/duration.js b/test/moment/duration.js index 1cee4fc6f..c0457659a 100644 --- a/test/moment/duration.js +++ b/test/moment/duration.js @@ -210,13 +210,13 @@ exports.duration = { }, "serialization to ISO 8601 duration strings" : function (test) { - test.expect(4); - test.equal(moment.duration({y: 1, M: 2, d: 3, h: 4, m: 5, s: 6}).toIsoString() , "P1Y2M3DT4H5M6S", "all fields"); - test.equal(moment.duration({M: -1}).toIsoString() , "-P1M", "one month ago"); - test.equal(moment.duration({m: -1}).toIsoString() , "-PT1M", "one minute ago"); - test.equal(moment.duration({s: -1}).toIsoString() , "-PT0.5S", "one half second ago"); - test.equal(moment.duration({y: -0.5, M: 1}).toIsoString() , "-P5M", "a month after half a year ago"); - test.done(); + test.expect(4); + test.equal(moment.duration({y: 1, M: 2, d: 3, h: 4, m: 5, s: 6}).toIsoString(), "P1Y2M3DT4H5M6S", "all fields"); + test.equal(moment.duration({M: -1}).toIsoString(), "-P1M", "one month ago"); + test.equal(moment.duration({m: -1}).toIsoString(), "-PT1M", "one minute ago"); + test.equal(moment.duration({s: -1}).toIsoString(), "-PT0.5S", "one half second ago"); + test.equal(moment.duration({y: -0.5, M: 1}).toIsoString() , "-P5M", "a month after half a year ago"); + test.done(); }, "humanize" : function (test) {