@@ -170,7 +170,7 @@ describe('Input', () => {
170170 } )
171171
172172 describe ( 'onChange' , ( ) => {
173- it ( 'is called with (e, data) on change' , ( ) => {
173+ it ( 'is called on change' , ( ) => {
174174 const onChange = sandbox . spy ( )
175175 const e = { target : { value : 'name' } }
176176 const props = { 'data-foo' : 'bar' , onChange }
@@ -180,10 +180,10 @@ describe('Input', () => {
180180 wrapper . find ( 'input' ) . simulate ( 'change' , e )
181181
182182 onChange . should . have . been . calledOnce ( )
183- onChange . should . have . been . calledWithMatch ( e , { ... props , value : e . target . value } )
183+ onChange . should . have . been . calledWithMatch ( e , props , e . target . value )
184184 } )
185185
186- it ( 'is called with (e, data) on change when using children' , ( ) => {
186+ it ( 'is called on change when using children' , ( ) => {
187187 const onChange = sandbox . spy ( )
188188 const e = { target : { value : 'name' } }
189189 const props = { 'data-foo' : 'bar' , onChange }
@@ -197,7 +197,7 @@ describe('Input', () => {
197197 wrapper . find ( 'input' ) . simulate ( 'change' , e )
198198
199199 onChange . should . have . been . calledOnce ( )
200- onChange . should . have . been . calledWithMatch ( e , { ... props , value : e . target . value } )
200+ onChange . should . have . been . calledWithMatch ( e , props , e . target . value )
201201 } )
202202 } )
203203
0 commit comments