Files
freeCodeCamp/client/jest.test.js
Oliver Eyton-Williams cc79999a31 fix: force timezone to be UTC for tests (#38215)
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.
2020-02-14 21:24:29 +05:30

7 lines
149 B
JavaScript

/* global expect */
describe('Timezones', () => {
it('should always be UTC', () => {
expect(new Date().getTimezoneOffset()).toBe(0);
});
});