Skip to content

Commit 134aaa4

Browse files
committed
Properly await assertion in src/query/tests/errorHandling.test.tsx
1 parent 48dd915 commit 134aaa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/toolkit/src/query/tests/errorHandling.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ describe('error handling in a component', () => {
648648
)
649649
})
650650
const unwrappedPromise = mutationqueryFulfilled!.unwrap()
651-
expect(unwrappedPromise).rejects.toMatchObject({
651+
await expect(unwrappedPromise).rejects.toMatchObject({
652652
status: 500,
653653
data: { value: 'error' },
654654
})

0 commit comments

Comments
 (0)