jasmine spy on window.innerwidth not getting called

后端 未结 0 1684
天命终不由人
天命终不由人 2021-02-18 23:46

In my Angular 7 project, I want to mock window.innerWidth to return a specific value depending on the test case, but it ends up calling the actual window.innerWidth

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