Testing a button with a method callback in a functional component

前端 未结 0 632
暖寄归人
暖寄归人 2020-12-31 09:28

I am trying to test a react component using Enzyme. I am not able to test the click on the IconButton component and the function doesn\'t get called when i simulate a click.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题