How to test useHistory on button click with Jest and Enzyme?

后端 未结 0 1952
无人共我
无人共我 2020-12-07 19:03

I have a button which onClick will go back to a URL as below:

const testing = (props) => {
        let history = useHistory();
      const handleOnClick =          


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