From 8320b1d39ea6402c32e907dbb35082efc6af9f5a Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 31 May 2022 19:40:23 +0200
Subject: chore: replace the toggle component

---
 src/components/atoms/forms/fieldset.test.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(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
index 0f84f83..1d1d246 100644
--- a/src/components/atoms/forms/fieldset.test.tsx
+++ b/src/components/atoms/forms/fieldset.test.tsx
@@ -5,7 +5,7 @@ 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();
+    expect(screen.findByRole('group', { name: legend })).toBeTruthy();
+    expect(screen.findByText(body)).toBeTruthy();
   });
 });
-- 
cgit v1.2.3

