Profile: Fix failing FE reducer test (#36331)

pull/36332/head^2
Jack Westbrook 5 years ago committed by GitHub
parent 1caaa784d9
commit 4434eeaf59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      public/app/features/profile/state/reducers.test.ts

@ -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>()

Loading…
Cancel
Save