Skip to content

Commit

Permalink
[kai.zhou][adm-718]: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Zhou committed Jan 24, 2024
1 parent 7f5440b commit a0a133d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
12 changes: 6 additions & 6 deletions frontend/__tests__/hooks/useGenerateReportEffect.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit a0a133d

Please sign in to comment.