Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
januschung committed Dec 21, 2024
1 parent 146657b commit c4234ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/components/__tests__/JobApplicationList.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
});
});

Expand Down Expand Up @@ -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'))
Expand Down
2 changes: 0 additions & 2 deletions src/components/common/SortableTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ const SortableTable = ({ data, columns, handleSort, getSortIndicator }) => {
<TableSortLabel
active={getSortIndicator(column.key) === 'true'}
direction={getSortIndicator(column.key) === '↑' ? 'asc' : 'desc'}
// direction={getSortIndicator(column.key) || '↑'}
// direction={getSortIndicator(column.key) === 'asc' ? '↑' : '↓'}
onClick={() => handleSort(column.key)}
>
{column.label}
Expand Down

0 comments on commit c4234ab

Please sign in to comment.