diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-05-31 19:40:23 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-06-01 22:32:09 +0200 |
| commit | 8320b1d39ea6402c32e907dbb35082efc6af9f5a (patch) | |
| tree | b5ee9586a4ec91aa15c92dcb513b551716fd4416 /src/components/atoms/forms | |
| parent | 994ad1bec193b2d1a6e0d38d6ef3f3d2bd66c3ea (diff) | |
chore: replace the toggle component
Diffstat (limited to 'src/components/atoms/forms')
| -rw-r--r-- | src/components/atoms/forms/fieldset.test.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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(); }); }); |
