From c4234abc04344ed5407be5a4f8e015438d9f56a2 Mon Sep 17 00:00:00 2001 From: Janus Chung Date: Fri, 20 Dec 2024 21:56:57 -0800 Subject: [PATCH] update test --- src/components/__tests__/JobApplicationList.test.jsx | 7 ++++--- src/components/common/SortableTable.jsx | 2 -- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/__tests__/JobApplicationList.test.jsx b/src/components/__tests__/JobApplicationList.test.jsx index d23f360..4de8535 100644 --- a/src/components/__tests__/JobApplicationList.test.jsx +++ b/src/components/__tests__/JobApplicationList.test.jsx @@ -100,9 +100,9 @@ beforeEach(() => { handleSnackbarClose: jest.fn(), }); require('../hooks/useConfirmDialog').default.mockReturnValue({ - confirmOpen: true, - openConfirmDialog: jest.fn(), - cancel: jest.fn(), + confirmDialogOpen: true, + handleConfirmDialogOpen: jest.fn(), + handleConfirmDialogClose: jest.fn(), }); }); @@ -149,6 +149,7 @@ describe('JobApplicationList', () => { // Simulate clicking the delete button for the first job application const deleteButton = screen.getAllByText('Delete')[0]; + console.log("zeon check: {}", deleteButton) userEvent.click(deleteButton); console.log("first check: {}", screen.getAllByText('Delete')) diff --git a/src/components/common/SortableTable.jsx b/src/components/common/SortableTable.jsx index 92e3221..30494a4 100644 --- a/src/components/common/SortableTable.jsx +++ b/src/components/common/SortableTable.jsx @@ -28,8 +28,6 @@ const SortableTable = ({ data, columns, handleSort, getSortIndicator }) => { handleSort(column.key)} > {column.label}