Skip to content

Commit

Permalink
Properly await assertion in src/query/tests/errorHandling.test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Dec 6, 2024
1 parent 48dd915 commit 134aaa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/toolkit/src/query/tests/errorHandling.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ describe('error handling in a component', () => {
)
})
const unwrappedPromise = mutationqueryFulfilled!.unwrap()
expect(unwrappedPromise).rejects.toMatchObject({
await expect(unwrappedPromise).rejects.toMatchObject({
status: 500,
data: { value: 'error' },
})
Expand Down

0 comments on commit 134aaa4

Please sign in to comment.