How to mock a non-class, non-exported variable without testbed

后端 未结 0 464
别跟我提以往
别跟我提以往 2021-02-12 18:13

I have a larger number of services I need to test. Class test, not component test, thus I can not use Testbed, but have to mock it using let service = new MyService

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