Profile: Fix failing FE reducer test (#36331)

This commit is contained in:
Jack Westbrook 2021-07-01 09:58:49 +02:00 committed by GitHub
parent 1caaa784d9
commit 4434eeaf59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,16 @@ import {
} from './reducers';
describe('userReducer', () => {
let dateNow: any;
beforeAll(() => {
dateNow = jest.spyOn(Date, 'now').mockImplementation(() => 1609470000000); // 2021-01-01 04:00:00
});
afterAll(() => {
dateNow.mockRestore();
});
describe('when updateTimeZone is dispatched', () => {
it('then state should be correct', () => {
reducerTester<UserState>()