How to cover a setTimeout function with a document spy in Jasmine / Angular?

后端 未结 0 1659
情话喂你
情话喂你 2020-12-09 15:18

I have a setTimeout inside my ngOnInit to define some properties and run a function. I want to unit test this but it doesn\'t go in the setTi

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