How to mock a global variable in Angular Unit Test?

前端 未结 0 1815
北恋
北恋 2021-01-30 14:05

I have a scenario where I have declared a variable outside component class. Since its a global variable which is initialized at runtime with an object. I want to mock this globa

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