mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
Fix instrument test types
This commit is contained in:
parent
947a23ca9d
commit
a1916faa71
|
@ -1,4 +1,11 @@
|
|||
import { createStore, compose, Reducer, Store, Action } from 'redux';
|
||||
import {
|
||||
createStore,
|
||||
compose,
|
||||
Reducer,
|
||||
Store,
|
||||
Action,
|
||||
StoreEnhancer,
|
||||
} from 'redux';
|
||||
import {
|
||||
ActionCreators,
|
||||
EnhancedStore,
|
||||
|
@ -1398,7 +1405,10 @@ describe('instrument', () => {
|
|||
|
||||
it('throws if there are more than one instrument enhancer included', () => {
|
||||
expect(() => {
|
||||
createStore(counter, compose(instrument(), instrument()));
|
||||
createStore(
|
||||
counter,
|
||||
compose(instrument(), instrument()) as StoreEnhancer,
|
||||
);
|
||||
}).toThrow(
|
||||
'DevTools instrumentation should not be applied more than once. ' +
|
||||
'Check your store configuration.',
|
||||
|
|
Loading…
Reference in New Issue
Block a user