Skip to content

Commit b8f9737

Browse files
author
ben.durrant
committed
fix immutable test
1 parent b865fb1 commit b8f9737

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/toolkit/src/tests/immutableStateInvariantMiddleware.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type {
22
Store,
33
MiddlewareAPI,
4-
Dispatch,
54
ImmutableStateInvariantMiddlewareOptions,
65
Middleware,
76
} from '@reduxjs/toolkit'
@@ -35,7 +34,8 @@ describe('createImmutableStateInvariantMiddleware', () => {
3534

3635
it('sends the action through the middleware chain', () => {
3736
const next: MWNext = vi.fn()
38-
middleware()(next)
37+
const dispatch = middleware()(next)
38+
dispatch({ type: 'SOME_ACTION' })
3939

4040
expect(next).toHaveBeenCalledWith({
4141
type: 'SOME_ACTION',

0 commit comments

Comments
 (0)