mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 17:40:23 +03:00
14 lines
453 B
TypeScript
14 lines
453 B
TypeScript
import { render } from '@testing-library/react';
|
|
import { MemoryRouter } from 'react-router-dom';
|
|
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()));
|
|
});
|