How to mock 'replace' function with Jest Javascript React Native?

后端 未结 0 1958
死守一世寂寞
死守一世寂寞 2021-02-06 15:49

I use Jest as unit testing on the React Native App I created. For currency formatting purposes I use the \'replace\' function from Javascript as below:

This my code :

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