Test: simulate a click on html element and call a function with jest and enzyme

后端 未结 0 1316
伪装坚强ぢ
伪装坚强ぢ 2021-01-05 08:14

Im trying to check if the function it\'s called once. I\'m using toHaveBeenCalledTimes method to check this test, but the test fail always.

My Test with jest

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