Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dauglyon committed Jun 24, 2024
1 parent 2f44c60 commit 80c366e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/components/Table.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ test('useTableColumns hook makes appropriate headers from string lists', () => {
exclude: ['b', 'z'],
order: ['c', 'a', 'q'],
});
useEffect(() => colSpy(cols), [cols]);
useEffect(() => colSpy(cols.columnDefs), [cols.columnDefs]);
return <></>;
};

Expand All @@ -413,7 +413,7 @@ test('Empty useTableColumns hook returns empty column list', () => {
const colSpy = jest.fn();
const Wrapper = () => {
const cols = useTableColumns({});
useEffect(() => colSpy(cols), [cols]);
useEffect(() => colSpy(cols.columnDefs), [cols.columnDefs]);
return <></>;
};

Expand Down

0 comments on commit 80c366e

Please sign in to comment.