@@ -50,7 +50,7 @@ describe('TextArea', () => {
5050 } )
5151
5252 describe ( 'onChange' , ( ) => {
53- it ( 'is called with (e, data ) on change' , ( ) => {
53+ it ( 'is called with (e, props, value ) on change' , ( ) => {
5454 const onChange = sandbox . spy ( )
5555 const e = { target : { value : 'name' } }
5656 const props = { 'data-foo' : 'bar' , onChange }
@@ -59,12 +59,12 @@ describe('TextArea', () => {
5959 wrapper . find ( 'textarea' ) . simulate ( 'change' , e )
6060
6161 onChange . should . have . been . calledOnce ( )
62- onChange . should . have . been . calledWithMatch ( e , { ... props , value : e . target . value } )
62+ onChange . should . have . been . calledWithMatch ( e , props , e . target . value )
6363 } )
6464 } )
6565
6666 describe ( 'onInput' , ( ) => {
67- it ( 'is called with (e, data ) on input' , ( ) => {
67+ it ( 'is called with (e, props, value ) on input' , ( ) => {
6868 const onInput = sandbox . spy ( )
6969 const e = { target : { value : 'name' } }
7070 const props = { 'data-foo' : 'bar' , onInput }
@@ -73,7 +73,7 @@ describe('TextArea', () => {
7373 wrapper . find ( 'textarea' ) . simulate ( 'input' , e )
7474
7575 onInput . should . have . been . calledOnce ( )
76- onInput . should . have . been . calledWithMatch ( e , { ... props , value : e . target . value } )
76+ onInput . should . have . been . calledWithMatch ( e , props , e . target . value )
7777 } )
7878 } )
7979
0 commit comments