diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-04-09 19:39:11 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-04-09 19:39:11 +0200 |
| commit | 7b9b5c2368ecff5b083b171cf38ce914746284ac (patch) | |
| tree | 689b5c740fe7e701acd5f7da64273076bc35aa6d /src/components/atoms/layout/main.test.tsx | |
| parent | 9cbef657ac9484cbf79234527ec6bfe6a451ece8 (diff) | |
chore: add a Main component
Diffstat (limited to 'src/components/atoms/layout/main.test.tsx')
| -rw-r--r-- | src/components/atoms/layout/main.test.tsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/atoms/layout/main.test.tsx b/src/components/atoms/layout/main.test.tsx new file mode 100644 index 0000000..f91846f --- /dev/null +++ b/src/components/atoms/layout/main.test.tsx @@ -0,0 +1,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); + }); +}); |
