2024-05-20 21:03:50 +03:00
|
|
|
import { render } from '@testing-library/react';
|
2024-12-09 13:52:58 +03:00
|
|
|
import { MemoryRouter } from 'react-router';
|
2024-05-20 21:03:50 +03:00
|
|
|
import { Settings } from '../../src/settings/Settings';
|
2023-09-30 11:45:52 +03:00
|
|
|
import { checkAccessibility } from '../__helpers__/accessibility';
|
2021-09-20 22:23:39 +03:00
|
|
|
|
|
|
|
describe('<Settings />', () => {
|
2024-05-20 21:03:50 +03:00
|
|
|
const setUp = () => render(
|
|
|
|
<MemoryRouter>
|
|
|
|
<Settings settings={{}} setSettings={vi.fn()} />
|
|
|
|
</MemoryRouter>,
|
|
|
|
);
|
2021-09-20 22:23:39 +03:00
|
|
|
|
2023-09-30 11:45:52 +03:00
|
|
|
it('passes a11y checks', () => checkAccessibility(setUp()));
|
2021-09-20 22:23:39 +03:00
|
|
|
});
|