Skip to content

Commit 13be620

Browse files
committed
add missing await
1 parent 255d339 commit 13be620

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1011,9 +1011,9 @@ describe('reducer errors will be rethrown', () => {
10111011
},
10121012
})
10131013
// TODO: this breaks our promise that not unwrapping will never throw - do we care?
1014-
it('rethrows errors found when dispatching pending action', () => {
1014+
it('rethrows errors found when dispatching pending action', async () => {
10151015
const store = faultStoreForType('pending')
1016-
expect(store.dispatch(asyncThunk(false))).rejects.toThrowError(
1016+
await expect(store.dispatch(asyncThunk(false))).rejects.toThrowError(
10171017
'Error in reducer',
10181018
)
10191019
})

0 commit comments

Comments
 (0)