]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
fixing zone getter and setter test
authorTim Wood <washwithcare@gmail.com>
Sat, 11 May 2013 16:59:37 +0000 (18:59 +0200)
committerTim Wood <washwithcare@gmail.com>
Sat, 11 May 2013 16:59:37 +0000 (18:59 +0200)
test/moment/zones.js

index 9b411adbbd5688e583dfa6eed7b7d2f771c75170..abf69126f93eb01d86095ea44363069118c993e2 100644 (file)
@@ -154,7 +154,7 @@ exports.zones = {
     },
 
     "getters and setters" : function (test) {
-        var a = moment([2011]);
+        var a = moment([2011, 5, 20]);
 
         test.equal(a.clone().zone(120).year(2012).year(), 2012, "should get and set year correctly");
         test.equal(a.clone().zone(120).month(1).month(), 1, "should get and set month correctly");