]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Failing timezone unit tests #185
authorTim Wood <washwithcare@gmail.com>
Fri, 2 Mar 2012 00:18:50 +0000 (00:18 +0000)
committerTim Wood <washwithcare@gmail.com>
Fri, 2 Mar 2012 00:18:50 +0000 (00:18 +0000)
test/moment/format.js

index 1459a2ebfeba311e423da47de19dbe5718d4a09b..13a6acf6ed6535bced29b65213f912c6be236888 100644 (file)
@@ -25,8 +25,8 @@ exports.format = {
         test.expect(4);
 
         var b = moment(new Date(2010, 1, 14, 15, 25, 50, 125));
-        test.ok(b.format('z').match(/^[A-Z]{3,5}$/), b.format('z') + ' ---> Something like "PST"');
-        test.ok(b.format('zz').match(/^[A-Z]{3,5}$/), b.format('zz') + ' ---> Something like "PST"');
+        test.ok(b.format('z').match(/^[A-Z]{3,6}$/), b.format('z') + ' ---> Something like "PST"');
+        test.ok(b.format('zz').match(/^[A-Z]{3,6}$/), b.format('zz') + ' ---> Something like "PST"');
         test.ok(b.format('Z').match(/^[\+\-]\d\d:\d\d$/), b.format('Z') + ' ---> Something like "+07:30"');
         test.ok(b.format('ZZ').match(/^[\+\-]\d{4}$/), b.format('ZZ') + ' ---> Something like "+0700"');
         test.done();