(spyOnMethods: any)
| 28 | |
| 29 | it('wraps dispatch method with middleware once', () => { |
| 30 | function test(spyOnMethods: any): Middleware { |
| 31 | return methods => { |
| 32 | spyOnMethods(methods) |
| 33 | return next => action => next(action) |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | const spy = vi.fn() |
| 38 | const store = applyMiddleware(test(spy), thunk)(createStore)(reducers.todos) |
no test coverage detected