react-calendar-heatmap's output depends on the timezone, which means that snapshots can fail if the timezone changes. This sets the timezone as UTC during client tests to avoid that problem.
7 lines
149 B
JavaScript
7 lines
149 B
JavaScript
/* global expect */
|
|
describe('Timezones', () => {
|
|
it('should always be UTC', () => {
|
|
expect(new Date().getTimezoneOffset()).toBe(0);
|
|
});
|
|
});
|