From ae384aec5084b9fb9f02166890686a37d1260ef2 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 30 May 2022 19:39:20 +0200
Subject: chore: add a Fieldset component

---
 src/components/atoms/forms/fieldset.test.tsx | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 src/components/atoms/forms/fieldset.test.tsx

(limited to 'src/components/atoms/forms/fieldset.test.tsx')

diff --git a/src/components/atoms/forms/fieldset.test.tsx b/src/components/atoms/forms/fieldset.test.tsx
new file mode 100644
index 0000000..0f84f83
--- /dev/null
+++ b/src/components/atoms/forms/fieldset.test.tsx
@@ -0,0 +1,11 @@
+import { render, screen } from '@test-utils';
+import Fieldset from './fieldset';
+import { body, legend } from './fieldset.fixture';
+
+describe('Fieldset', () => {
+  it('renders a legend and a body', () => {
+    render(<Fieldset legend={legend}>{body}</Fieldset>);
+    expect(screen.findByRole('group', { name: legend })).toBeInTheDocument();
+    expect(screen.findByText(body)).toBeInTheDocument();
+  });
+});
-- 
cgit v1.2.3

