Skip to content
This repository has been archived by the owner on Jan 26, 2020. It is now read-only.

Commit

Permalink
Added spec for loading linked zones from the backward file
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieRuderman committed Dec 17, 2014
1 parent cf0a8e0 commit d978403
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/tz.default.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,11 @@ describe('TimezoneJS', function () {
expect(sampleTz).toBeDefined();
expect(sampleTz.tzAbbr).toEqual('ICT');
});

it('should load an unloaded zone file linked from the backward file', function () {
sampleTz = timezoneJS.timezone.getTzInfo(new Date(), 'Antarctica/South_Pole');
expect(timezoneJS.timezone.loadedZones).toEqual({ asia: true, antarctica: true, backward: true, australasia: true });
expect(sampleTz.tzAbbr).toEqual('NZDT');
});

});

0 comments on commit d978403

Please sign in to comment.