瀏覽代碼

fix: flaky test

Fela Maslen 5 年之前
父節點
當前提交
d3d2b01a7d
共有 1 個文件被更改,包括 1 次插入2 次删除
  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(() => {