summaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/main.test.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/atoms/layout/main.test.tsx')
-rw-r--r--src/components/atoms/layout/main.test.tsx12
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);
+ });
+});