Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

more tests for issue #46

  • Loading branch information...
commit 5e7b89657dde5bcab63ca14b1dd9fb2cc10f92f6 1 parent 1e77cb4
@longlho longlho authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 spec/tz.manual.spec.js
View
5 spec/tz.manual.spec.js
@@ -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/);
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.