mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Profile: Fix failing FE reducer test (#36331)
This commit is contained in:
parent
1caaa784d9
commit
4434eeaf59
@ -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…
Reference in New Issue
Block a user