File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/enzyme-test-suite/test Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2474,13 +2474,13 @@ describe('shallow', () => {
24742474 render ( ) {
24752475 return (
24762476 < div >
2477- < a onClick = { spy } > foo</ a >
2477+ < button onClick = { spy } > foo</ button >
24782478 </ div >
24792479 ) ;
24802480 }
24812481 }
24822482 const wrapper = shallow ( < Foo /> ) ;
2483- const value = wrapper . find ( 'a ' ) . invoke ( 'onClick' ) ;
2483+ const value = wrapper . find ( 'button ' ) . invoke ( 'onClick' ) ;
24842484 expect ( value ) . to . equal ( 123 ) ;
24852485 expect ( spy . called ) . to . equal ( true ) ;
24862486 } ) ;
@@ -2490,15 +2490,15 @@ describe('shallow', () => {
24902490 render ( ) {
24912491 return (
24922492 < div >
2493- < a onClick = { spy } > foo</ a >
2493+ < button onClick = { spy } > foo</ button >
24942494 </ div >
24952495 ) ;
24962496 }
24972497 }
24982498 const wrapper = shallow ( < Foo /> ) ;
24992499 const a = { } ;
25002500 const b = { } ;
2501- wrapper . find ( 'a ' ) . invoke ( 'onClick' , a , b ) ;
2501+ wrapper . find ( 'button ' ) . invoke ( 'onClick' , a , b ) ;
25022502 expect ( spy . args [ 0 ] [ 0 ] ) . to . equal ( a ) ;
25032503 expect ( spy . args [ 0 ] [ 1 ] ) . to . equal ( b ) ;
25042504 } ) ;
You can’t perform that action at this time.
0 commit comments