From a0a133d66c878fc86f02adcf3ae2761e508672d5 Mon Sep 17 00:00:00 2001 From: Kai Zhou Date: Wed, 24 Jan 2024 19:47:02 +0800 Subject: [PATCH] [kai.zhou][adm-718]: fix typo --- .../containers/ReportStep/ReportStep.test.tsx | 2 +- .../__tests__/hooks/useGenerateReportEffect.test.tsx | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/__tests__/containers/ReportStep/ReportStep.test.tsx b/frontend/__tests__/containers/ReportStep/ReportStep.test.tsx index 6962d1e18d..fb1c3adf56 100644 --- a/frontend/__tests__/containers/ReportStep/ReportStep.test.tsx +++ b/frontend/__tests__/containers/ReportStep/ReportStep.test.tsx @@ -73,7 +73,7 @@ jest.mock('@src/utils/util', () => ({ let store = null; describe('Report Step', () => { const { result: notificationHook } = renderHook(() => useNotificationLayoutEffect()); - const { result: reportHook } = renderHook(() => useGenerateReportEffect(notificationHook.current)); + const { result: reportHook } = renderHook(() => useGenerateReportEffect()); beforeEach(() => { resetReportHook(); }); diff --git a/frontend/__tests__/hooks/useGenerateReportEffect.test.tsx b/frontend/__tests__/hooks/useGenerateReportEffect.test.tsx index 170451b60d..6a280ca82e 100644 --- a/frontend/__tests__/hooks/useGenerateReportEffect.test.tsx +++ b/frontend/__tests__/hooks/useGenerateReportEffect.test.tsx @@ -43,7 +43,7 @@ describe('use generate report effect', () => { .fn() .mockImplementation(async () => ({ response: MOCK_RETRIEVE_REPORT_RESPONSE })); - const { result } = renderHook(() => useGenerateReportEffect(notificationHook.current)); + const { result } = renderHook(() => useGenerateReportEffect()); await waitFor(() => { result.current.startToRequestBoardData(MOCK_GENERATE_REPORT_REQUEST_PARAMS); @@ -65,7 +65,7 @@ describe('use generate report effect', () => { .fn() .mockImplementation(async () => ({ response: MOCK_RETRIEVE_REPORT_RESPONSE })); - const { result } = renderHook(() => useGenerateReportEffect(notificationHook.current)); + const { result } = renderHook(() => useGenerateReportEffect()); await waitFor(() => { result.current.startToRequestBoardData(MOCK_GENERATE_REPORT_REQUEST_PARAMS); @@ -87,7 +87,7 @@ describe('use generate report effect', () => { .fn() .mockImplementation(async () => ({ response: MOCK_RETRIEVE_REPORT_RESPONSE })); - const { result } = renderHook(() => useGenerateReportEffect(notificationHook.current)); + const { result } = renderHook(() => useGenerateReportEffect()); await waitFor(() => { result.current.startToRequestDoraData(MOCK_GENERATE_REPORT_REQUEST_PARAMS); @@ -121,7 +121,7 @@ describe('use generate report effect', () => { .fn() .mockImplementation(async () => ({ response: MOCK_RETRIEVE_REPORT_RESPONSE })); - const { result } = renderHook(() => useGenerateReportEffect(notificationHook.current)); + const { result } = renderHook(() => useGenerateReportEffect()); await waitFor(() => { result.current.startToRequestDoraData(MOCK_GENERATE_REPORT_REQUEST_PARAMS); @@ -138,7 +138,7 @@ describe('use generate report effect', () => { .fn() .mockImplementation(async () => ({ response: MOCK_RETRIEVE_REPORT_RESPONSE })); - const { result } = renderHook(() => useGenerateReportEffect(notificationHook.current)); + const { result } = renderHook(() => useGenerateReportEffect()); await waitFor(() => { result.current.startToRequestDoraData(MOCK_GENERATE_REPORT_REQUEST_PARAMS); @@ -160,7 +160,7 @@ describe('use generate report effect', () => { .fn() .mockImplementation(async () => ({ response: MOCK_RETRIEVE_REPORT_RESPONSE })); - const { result } = renderHook(() => useGenerateReportEffect(notificationHook.current)); + const { result } = renderHook(() => useGenerateReportEffect()); await waitFor(() => { result.current.startToRequestBoardData(MOCK_GENERATE_REPORT_REQUEST_PARAMS);