From: Iskren Chernev Date: Fri, 5 Sep 2014 04:52:36 +0000 (-0700) Subject: Make jscs happy X-Git-Tag: 2.8.3~11^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1848%2Fhead;p=thirdparty%2Fmoment.git Make jscs happy --- diff --git a/test/moment/diff.js b/test/moment/diff.js index 0e3de1ee7..d5832f252 100644 --- a/test/moment/diff.js +++ b/test/moment/diff.js @@ -226,7 +226,7 @@ exports.diff = { test.done(); }, - "exact month diffs" : function (test) { + 'exact month diffs' : function (test) { // generate all pairs of months and compute month diff, with fixed day // of month = 15. @@ -234,13 +234,13 @@ exports.diff = { for (m1 = 0; m1 < 12; ++m1) { for (m2 = m1; m2 < 12; ++m2) { test.equal(moment([2013, m2, 15]).diff(moment([2013, m1, 15]), 'months', true), m2 - m1, - "month diff from 2013-" + m1 + "-15 to 2013-" + m2 + "-15"); + 'month diff from 2013-' + m1 + '-15 to 2013-' + m2 + '-15'); } } test.done(); }, - "year diffs" : function (test) { + 'year diffs' : function (test) { test.expect(10); // due to floating point math errors, these tests just need to be accurate within 0.00000001