@@ -147,7 +147,7 @@ describe('<SelectionCell />', () => {
147147 /> ,
148148 { bootstrap4 : false }
149149 ) ;
150- wrapper . find ( 'td' ) . simulate ( 'click' ) ;
150+ wrapper . find ( 'td' ) . simulate ( 'click' , { stopPropagation : jest . fn ( ) } ) ;
151151 } ) ;
152152
153153 it ( 'should calling handleRowClicked' , ( ) => {
@@ -173,7 +173,7 @@ describe('<SelectionCell />', () => {
173173 /> ,
174174 { bootstrap4 : false }
175175 ) ;
176- wrapper . find ( 'td' ) . simulate ( 'click' ) ;
176+ wrapper . find ( 'td' ) . simulate ( 'click' , { stopPropagation : jest . fn ( ) } ) ;
177177 } ) ;
178178
179179 it ( 'should calling handleRowClicked' , ( ) => {
@@ -201,7 +201,7 @@ describe('<SelectionCell />', () => {
201201
202202 it ( 'should be called with correct paramters' , ( ) => {
203203 // first click
204- wrapper . find ( 'td' ) . simulate ( 'click' ) ;
204+ wrapper . find ( 'td' ) . simulate ( 'click' , { stopPropagation : jest . fn ( ) } ) ;
205205 expect ( mockOnRowSelect . callCount ) . toBe ( 1 ) ;
206206 expect ( mockOnRowSelect . calledWith ( rowKey , true , rowIndex ) ) . toBe ( true ) ;
207207 } ) ;
@@ -223,9 +223,9 @@ describe('<SelectionCell />', () => {
223223
224224 it ( 'should be called with correct parameters' , ( ) => {
225225 // first click
226- wrapper . find ( 'td' ) . simulate ( 'click' ) ;
226+ wrapper . find ( 'td' ) . simulate ( 'click' , { stopPropagation : jest . fn ( ) } ) ;
227227 expect ( mockOnRowSelect . callCount ) . toBe ( 1 ) ;
228- expect ( mockOnRowSelect . calledWith ( rowKey , false , rowIndex , undefined ) ) . toBe ( true ) ;
228+ expect ( mockOnRowSelect . calledWith ( rowKey , false , rowIndex ) ) . toBe ( true ) ;
229229 } ) ;
230230 } ) ;
231231 } ) ;
0 commit comments