How to mock functions/methods which updates same object?

后端 未结 0 1832
死守一世寂寞
死守一世寂寞 2020-12-09 21:41

I have 2 methods inside class

  1. methodA()
  2. methodB()

Code:

const myModule1 =  require(\'./foo\');
const myModule2 =  require(         


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