Skip to content

Commit

Permalink
fix immutable test
Browse files Browse the repository at this point in the history
  • Loading branch information
ben.durrant committed Apr 17, 2023
1 parent b865fb1 commit b8f9737
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type {
Store,
MiddlewareAPI,
Dispatch,
ImmutableStateInvariantMiddlewareOptions,
Middleware,
} from '@reduxjs/toolkit'
Expand Down Expand Up @@ -35,7 +34,8 @@ describe('createImmutableStateInvariantMiddleware', () => {

it('sends the action through the middleware chain', () => {
const next: MWNext = vi.fn()
middleware()(next)
const dispatch = middleware()(next)
dispatch({ type: 'SOME_ACTION' })

expect(next).toHaveBeenCalledWith({
type: 'SOME_ACTION',
Expand Down

0 comments on commit b8f9737

Please sign in to comment.