mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 09:30:31 +03:00
14 lines
449 B
TypeScript
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()));
|
|
});
|