@@ -28,7 +28,7 @@ describe('input', () => {
2828 fireEvent . changeText ( textInput , 'text' )
2929 const button = getByLabelText ( l10n . en . sendButtonAccessibilityLabel )
3030 fireEvent . press ( button )
31- expect ( onSendPress ) . toHaveBeenCalledWith ( { text : 'text' } )
31+ expect ( onSendPress ) . toHaveBeenCalledWith ( { text : 'text' , type : 'text' } )
3232 expect ( textInput . props ) . toHaveProperty ( 'value' , '' )
3333 } )
3434
@@ -66,7 +66,7 @@ describe('input', () => {
6666 fireEvent . changeText ( textInput , 'text' )
6767 const button = getByLabelText ( l10n . en . sendButtonAccessibilityLabel )
6868 fireEvent . press ( button )
69- expect ( onSendPress ) . toHaveBeenCalledWith ( { text : 'text' } )
69+ expect ( onSendPress ) . toHaveBeenCalledWith ( { text : 'text' , type : 'text' } )
7070 expect ( textInput . props ) . toHaveProperty ( 'value' , 'text' )
7171 } )
7272
@@ -90,7 +90,7 @@ describe('input', () => {
9090 fireEvent . changeText ( textInput , 'text' )
9191 const button = getByLabelText ( l10n . en . sendButtonAccessibilityLabel )
9292 fireEvent . press ( button )
93- expect ( onSendPress ) . toHaveBeenCalledWith ( { text : 'text' } )
93+ expect ( onSendPress ) . toHaveBeenCalledWith ( { text : 'text' , type : 'text' } )
9494 expect ( textInput . props ) . toHaveProperty ( 'value' , '' )
9595 } )
9696
@@ -114,7 +114,7 @@ describe('input', () => {
114114 fireEvent . changeText ( textInput , 'text' )
115115 const button = getByLabelText ( l10n . en . sendButtonAccessibilityLabel )
116116 fireEvent . press ( button )
117- expect ( onSendPress ) . toHaveBeenCalledWith ( { text : value } )
117+ expect ( onSendPress ) . toHaveBeenCalledWith ( { text : value , type : 'text' } )
118118 expect ( textInput . props ) . toHaveProperty ( 'value' , value )
119119 } )
120120
@@ -137,7 +137,10 @@ describe('input', () => {
137137 const textInput = getByPlaceholderText ( l10n . en . inputPlaceholder )
138138 const button = getByLabelText ( l10n . en . sendButtonAccessibilityLabel )
139139 fireEvent . press ( button )
140- expect ( onSendPress ) . toHaveBeenCalledWith ( { text : defaultValue } )
140+ expect ( onSendPress ) . toHaveBeenCalledWith ( {
141+ text : defaultValue ,
142+ type : 'text' ,
143+ } )
141144 expect ( textInput . props ) . toHaveProperty ( 'value' , '' )
142145 } )
143146
0 commit comments