shlink-web-client/test/settings/Settings.test.tsx
2024-12-09 11:52:58 +01:00

14 lines
449 B
TypeScript

import { render } from '@testing-library/react';
import { MemoryRouter } from 'react-router';
import { Settings } from '../../src/settings/Settings';
import { checkAccessibility } from '../__helpers__/accessibility';
describe('<Settings />', () => {
const setUp = () => render(
<MemoryRouter>
<Settings settings={{}} setSettings={vi.fn()} />
</MemoryRouter>,
);
it('passes a11y checks', () => checkAccessibility(setUp()));
});