How to mock a 3rd party module that is just a function ('js-file-download')

前端 未结 0 1919
耶瑟儿~
耶瑟儿~ 2021-01-02 12:02

I\'m trying to write a test around download functionality in a React component that uses \'js-file-download\'. I have been able to mock it a couple ways in my test:



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