Permalink
Browse files

more tests for issue #46

  • Loading branch information...
1 parent 1e77cb4 commit 5e7b89657dde5bcab63ca14b1dd9fb2cc10f92f6 @longlho longlho committed Oct 22, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 spec/tz.manual.spec.js
View
@@ -16,5 +16,10 @@ describe('TimezoneJS', function () {
sampleTz = timezoneJS.timezone.getTzInfo(new Date(), 'Asia/Bangkok');
expect(sampleTz).toBeDefined();
expect(sampleTz.tzAbbr).toEqual('ICT');
+ dt = new timezoneJS.Date();
+ dt.setTimezone('America/Chicago');
+ expect(dt.getTimezoneAbbreviation()).toMatch(/C(S|D)T/);
+ dt.setTimezone('America/New_York');
+ expect(dt.getTimezoneAbbreviation()).toMatch(/E(S|D)T/);
});
});

0 comments on commit 5e7b896

Please sign in to comment.