mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 08:30:02 +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 {
|
import {
|
||||||
ActionCreators,
|
ActionCreators,
|
||||||
EnhancedStore,
|
EnhancedStore,
|
||||||
|
@ -1398,7 +1405,10 @@ describe('instrument', () => {
|
||||||
|
|
||||||
it('throws if there are more than one instrument enhancer included', () => {
|
it('throws if there are more than one instrument enhancer included', () => {
|
||||||
expect(() => {
|
expect(() => {
|
||||||
createStore(counter, compose(instrument(), instrument()));
|
createStore(
|
||||||
|
counter,
|
||||||
|
compose(instrument(), instrument()) as StoreEnhancer,
|
||||||
|
);
|
||||||
}).toThrow(
|
}).toThrow(
|
||||||
'DevTools instrumentation should not be applied more than once. ' +
|
'DevTools instrumentation should not be applied more than once. ' +
|
||||||
'Check your store configuration.',
|
'Check your store configuration.',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user