blob: f91846f64cfe8fd27792a4f7c3d1bcf8a5de1b51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { render, screen } from '@test-utils';
import Main from './main';
const id = 'main';
const children = 'The main content.';
describe('Main', () => {
it('renders the content of main element', () => {
render(<Main id={id}>{children}</Main>);
expect(screen.getByRole('main')).toHaveTextContent(children);
});
});
|