shlink-web-client/test/settings/Settings.test.tsx

15 lines
449 B
TypeScript
Raw Permalink Normal View History

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