Skip to content

Commit cbb2ac5

Browse files
committed
Fixed Radio Group Test case
1 parent 9c9107d commit cbb2ac5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/__tests__/RadioGroup.spec.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import expect from 'expect'
22
import expectJsx from 'expect-jsx'
33
import { RadioGroup } from 'material-ui/Radio'
44
import React from 'react'
5+
import noop from 'lodash.noop'
56
import TestUtils from 'react-dom/test-utils'
67
import ReduxFormMaterialUIRadioGroup from '../RadioGroup'
78

@@ -19,13 +20,15 @@ describe('RadioGroup', () => {
1920
new ReduxFormMaterialUIRadioGroup({
2021
input: {
2122
name: 'myRadio',
22-
value: 'Foo'
23+
value: 'Foo',
24+
onChange:{noop}
2325
}
2426
}).render()
2527
).toEqualJSX(
2628
<RadioGroup
2729
name="myRadio"
2830
value="Foo"
31+
onChange={noop}
2932
ref={() => {}}
3033
/>
3134
)

0 commit comments

Comments
 (0)