Skip to content

Commit ab7cac9

Browse files
committed
Fix thunk test types
1 parent a54b9ff commit ab7cac9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/createAsyncThunk.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ describe('createAsyncThunk', () => {
5656

5757
const thunkFunction = thunkActionCreator(args)
5858

59-
await thunkFunction(dispatch, undefined, undefined)
59+
await thunkFunction(dispatch, () => {}, undefined)
6060

6161
expect(passedArg).toBe(args)
6262

@@ -90,7 +90,7 @@ describe('createAsyncThunk', () => {
9090
const thunkFunction = thunkActionCreator(args)
9191

9292
try {
93-
await thunkFunction(dispatch, undefined, undefined)
93+
await thunkFunction(dispatch, () => {}, undefined)
9494
} catch (e) {}
9595

9696
expect(dispatch).toHaveBeenNthCalledWith(

0 commit comments

Comments
 (0)