Skip to content

Commit

Permalink
Failing timezone unit tests #185
Browse files Browse the repository at this point in the history
  • Loading branch information
timrwood committed Mar 2, 2012
1 parent 3e53d19 commit de853b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/moment/format.js
Expand Up @@ -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();
Expand Down

0 comments on commit de853b5

Please sign in to comment.