aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/forms/fields/radio/radio.test.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-10-05 18:58:30 +0200
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:14:41 +0100
commitfb860884857da73ee5b5e897745301cdf1d770a2 (patch)
tree3aaf3c192b3375a7e1bf2dbf9daa866be357a2f5 /src/components/atoms/forms/fields/radio/radio.test.tsx
parente97325a2c174a87c29593d1b42b9a1cc1eaf11af (diff)
refactor(components): make form components compliant with Eslint rules
Diffstat (limited to 'src/components/atoms/forms/fields/radio/radio.test.tsx')
-rw-r--r--src/components/atoms/forms/fields/radio/radio.test.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/atoms/forms/fields/radio/radio.test.tsx b/src/components/atoms/forms/fields/radio/radio.test.tsx
index ba8d68f..55eda9d 100644
--- a/src/components/atoms/forms/fields/radio/radio.test.tsx
+++ b/src/components/atoms/forms/fields/radio/radio.test.tsx
@@ -1,5 +1,5 @@
import { describe, expect, it } from '@jest/globals';
-import { render, screen } from '../../../../../../tests/utils';
+import { render, screen as rtlScreen } from '@testing-library/react';
import { Radio } from './radio';
const doNothing = () => {
@@ -11,7 +11,7 @@ describe('Radio', () => {
render(
<Radio id="radio" name="radio" onChange={doNothing} value="radio" />
);
- expect(screen.getByRole('radio')).not.toBeChecked();
+ expect(rtlScreen.getByRole('radio')).not.toBeChecked();
});
it('renders a checked radio', () => {
@@ -24,6 +24,6 @@ describe('Radio', () => {
value="radio"
/>
);
- expect(screen.getByRole('radio')).toBeChecked();
+ expect(rtlScreen.getByRole('radio')).toBeChecked();
});
});