summaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout/notice.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-04-15 14:31:40 +0200
committerArmand Philippot <git@armandphilippot.com>2022-04-15 14:31:40 +0200
commit0ff94252e27a80221e221c6159761f46aa111ac3 (patch)
tree96dc62063e39f46fcadd86c0b7e9377d3d5fbcd6 /src/components/atoms/layout/notice.test.tsx
parent894621cbf347485010de612b0f7fec74bdd26778 (diff)
chore: add a Notice component
Diffstat (limited to 'src/components/atoms/layout/notice.test.tsx')
-rw-r--r--src/components/atoms/layout/notice.test.tsx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/atoms/layout/notice.test.tsx b/src/components/atoms/layout/notice.test.tsx
new file mode 100644
index 0000000..4501f8f
--- /dev/null
+++ b/src/components/atoms/layout/notice.test.tsx
@@ -0,0 +1,11 @@
+import { render, screen } from '@test-utils';
+import Notice from './notice';
+
+const message = 'Tenetur consequuntur tempore.';
+
+describe('Notice', () => {
+ it('renders a message', () => {
+ render(<Notice kind="info" message={message} />);
+ expect(screen.getByText(message)).toBeInTheDocument();
+ });
+});