From: Isaac Cambron Date: Mon, 19 Aug 2013 07:12:25 +0000 (+1300) Subject: move test to avoid pacific-apia DST weirdness X-Git-Tag: 2.2.0~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1010%2Fhead;p=thirdparty%2Fmoment.git move test to avoid pacific-apia DST weirdness --- diff --git a/test/moment/diff.js b/test/moment/diff.js index 739e7fae4..19217bb39 100644 --- a/test/moment/diff.js +++ b/test/moment/diff.js @@ -170,7 +170,7 @@ exports.diff = { "diff between utc and local" : function (test) { test.expect(7); - test.equal(moment([2011]).utc().diff([2010], 'years'), 1, "year diff"); + test.equal(moment([2012]).utc().diff([2011], 'years'), 1, "year diff"); test.equal(moment([2010, 2, 2]).utc().diff([2010, 0, 2], 'months'), 2, "month diff"); test.equal(moment([2010, 0, 4]).utc().diff([2010], 'days'), 3, "day diff"); test.equal(moment([2010, 0, 22]).utc().diff([2010], 'weeks'), 3, "week diff");