Pārlūkot izejas kodu

fix: flaky test

Fela Maslen 5 gadi atpakaļ
vecāks
revīzija
d3d2b01a7d
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      gmus-web/src/hooks/request.spec.tsx

+ 1 - 2
gmus-web/src/hooks/request.spec.tsx

@@ -67,9 +67,8 @@ describe(useRequestCallback.name, () => {
       unmount();
     });
 
+    // eslint-disable-next-line jest/prefer-expect-assertions
     it('should set the response and loading state back to false', async () => {
-      expect.assertions(3);
-
       const { getByTestId, unmount } = setupRequest();
 
       await waitFor(() => {