From af5d75ea77617d6026ce2863ca0b6275471750a8 Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Fri, 6 Dec 2024 05:17:45 -0600 Subject: [PATCH] Properly `await` assertion in `src/query/tests/errorHandling.test.tsx` --- packages/toolkit/src/query/tests/errorHandling.test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/toolkit/src/query/tests/errorHandling.test.tsx b/packages/toolkit/src/query/tests/errorHandling.test.tsx index f5a611ec10..010f5e1860 100644 --- a/packages/toolkit/src/query/tests/errorHandling.test.tsx +++ b/packages/toolkit/src/query/tests/errorHandling.test.tsx @@ -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' }, })