Skip to content

Commit ee77141

Browse files
test(Radio): update Radio test (#2513)
Co-authored-by: Siddharth Kshetrapal <siddharthkp@github.com>
1 parent 700a24c commit ee77141

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/__tests__/Radio.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('Radio', () => {
1616
jest.resetAllMocks()
1717
})
1818

19-
behavesAsComponent({Component: Radio})
19+
behavesAsComponent({Component: Radio, toRender: () => <Radio {...defaultProps} />})
2020

2121
checkExports('Radio', {
2222
default: Radio

src/__tests__/__snapshots__/Radio.test.tsx.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ exports[`Radio renders consistently 1`] = `
2727
aria-invalid="false"
2828
aria-required="false"
2929
className="c0"
30+
name="mock"
3031
onChange={[Function]}
3132
type="radio"
33+
value="mock value"
3234
/>
3335
`;

0 commit comments

Comments
 (0)