Skip to content

Commit

Permalink
TS errors fix in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Leshe4ka committed Feb 28, 2024
1 parent 1934f12 commit 8b9579f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/NavBar/__tests__/NavBar.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('NavBar', () => {
})),
});

render(<NavBar onBurgerClick={jest.fn()} setDarkMode={jest.fn()} />);
render(<NavBar onBurgerClick={jest.fn()} />);
});

it('correctly renders header', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import { Cluster, ServerStatus } from 'generated-sources';
const burgerButtonOptions = { name: 'burger' };

jest.mock('components/Version/Version', () => () => <div>Version</div>);

interface DataType {
data: Cluster[] | undefined;
}

jest.mock('lib/hooks/api/clusters');
const mockedNavigate = jest.fn();
jest.mock('react-router-dom', () => ({
Expand All @@ -30,7 +32,7 @@ describe('Page Container', () => {
})),
});
render(
<PageContainer setDarkMode={jest.fn()}>
<PageContainer>
<div>child</div>
</PageContainer>,
{
Expand Down
1 change: 0 additions & 1 deletion frontend/src/lib/hooks/api/__tests__/topics.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ describe('Topics hooks', () => {
minInSyncReplicas: 0,
cleanupPolicy: '',
retentionMs: 0,
retentionBytes: 0,
maxMessageBytes: 0,
customParams: [],
};
Expand Down

0 comments on commit 8b9579f

Please sign in to comment.