This commit is contained in:
2026-08-08 18:59:56 +03:30
commit a949fc3766
175 changed files with 16575 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { renderWithClient } from '../../../../utils/test/react-query';
import { MemoryRouter } from 'react-router-dom';
import Header from '../header';
describe('Header component', () => {
test('successful render component', async () => {
const result = renderWithClient(<Header />, MemoryRouter);
expect(await result.findByTestId('header')).toBeInTheDocument();
expect(await result.findByTestId('header-nav')).toBeInTheDocument();
});
test('successful query component', async () => {
const result = renderWithClient(<Header />, MemoryRouter);
expect(await result.findByText(/Med Moshaver/i)).toBeInTheDocument();
});
});