From 7b9b5c2368ecff5b083b171cf38ce914746284ac Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Sat, 9 Apr 2022 19:39:11 +0200
Subject: chore: add a Main component

---
 src/components/atoms/layout/main.test.tsx | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 src/components/atoms/layout/main.test.tsx

(limited to 'src/components/atoms/layout/main.test.tsx')

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);
+  });
+});
-- 
cgit v1.2.3

