diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-09-22 19:34:01 +0200 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-10-24 12:23:48 +0200 |
| commit | a6ff5eee45215effb3344cb5d631a27a7c0369aa (patch) | |
| tree | 5051747acf72318b4fc5c18d603e3757fbefdfdb /src/components/molecules/forms/radio-group.test.tsx | |
| parent | 651ea4fc992e77d2f36b3c68f8e7a70644246067 (diff) | |
refactor(components): rewrite form components
Diffstat (limited to 'src/components/molecules/forms/radio-group.test.tsx')
| -rw-r--r-- | src/components/molecules/forms/radio-group.test.tsx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/components/molecules/forms/radio-group.test.tsx b/src/components/molecules/forms/radio-group.test.tsx deleted file mode 100644 index c4a01e4..0000000 --- a/src/components/molecules/forms/radio-group.test.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { render, screen } from '../../../../tests/utils'; -import { RadioGroup } from './radio-group'; -import { getOptions, initialChoice, legend } from './radio-group.fixture'; - -describe('RadioGroup', () => { - it('renders a legend', () => { - render( - <RadioGroup - initialChoice={initialChoice} - legend={legend} - options={getOptions()} - /> - ); - expect(screen.findByRole('radiogroup', { name: legend })).toBeDefined(); - }); - - it('renders the correct number of radio', () => { - const options = getOptions(); - - render( - <RadioGroup - initialChoice={initialChoice} - legend={legend} - options={options} - /> - ); - const radios = screen.getAllByRole('radio'); - expect(radios).toHaveLength(options.length); - }); -}); |
