How to assert a buttons onClick is assigned to a Function?

前端 未结 0 975
失恋的感觉
失恋的感觉 2021-01-13 03:41

this should be really basic, I am simply trying to assert in my test that a buttons onClick prop is equal to the function \'scrollToTop\'. I am struggling with the syntax.

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