]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
move test to avoid pacific-apia DST weirdness 1010/head
authorIsaac Cambron <icambron@gmail.com>
Mon, 19 Aug 2013 07:12:25 +0000 (20:12 +1300)
committerIsaac Cambron <icambron@gmail.com>
Mon, 19 Aug 2013 07:12:25 +0000 (20:12 +1300)
test/moment/diff.js

index 739e7fae44a7ec7292fa1b09f8be12a7c3689982..19217bb39df4123b0821de1519027bd651ecfdac 100644 (file)
@@ -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");