mirror of
https://github.com/towfiqi/serpbear
synced 2025-06-26 18:15:54 +00:00
18 lines
464 B
TypeScript
18 lines
464 B
TypeScript
import { render, screen } from '@testing-library/react';
|
|
import TopBar from '../../components/common/TopBar';
|
|
|
|
jest.mock('next/router', () => ({
|
|
useRouter: () => ({
|
|
pathname: '/',
|
|
}),
|
|
}));
|
|
|
|
describe('TopBar Component', () => {
|
|
it('renders without crashing', async () => {
|
|
render(<TopBar showSettings={jest.fn} showAddModal={jest.fn} />);
|
|
expect(
|
|
await screen.findByText('SerpBear'),
|
|
).toBeInTheDocument();
|
|
});
|
|
});
|