mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +03:00
Fix some test type errors
This commit is contained in:
parent
b630e5c7e9
commit
0813b61b60
|
@ -3,6 +3,7 @@ import {
|
|||
ActionCreators,
|
||||
EnhancedStore,
|
||||
instrument,
|
||||
LiftedAction,
|
||||
LiftedStore,
|
||||
LiftedState,
|
||||
} from '../src/instrument';
|
||||
|
@ -487,10 +488,18 @@ describe('instrument', () => {
|
|||
|
||||
const savedComputedStates = monitoredLiftedStore.getState().computedStates;
|
||||
|
||||
monitoredLiftedStore.dispatch({ type: 'lol' } as Action);
|
||||
monitoredLiftedStore.dispatch({ type: 'lol' } as unknown as LiftedAction<
|
||||
number,
|
||||
Action,
|
||||
null
|
||||
>);
|
||||
expect(reducerCalls).toBe(4);
|
||||
|
||||
monitoredLiftedStore.dispatch({ type: 'wat' } as Action);
|
||||
monitoredLiftedStore.dispatch({ type: 'wat' } as unknown as LiftedAction<
|
||||
number,
|
||||
Action,
|
||||
null
|
||||
>);
|
||||
expect(reducerCalls).toBe(4);
|
||||
|
||||
expect(monitoredLiftedStore.getState().computedStates).toBe(
|
||||
|
|
Loading…
Reference in New Issue
Block a user