Angular - How to test method that calls a callback

前端 未结 0 852
梦谈多话
梦谈多话 2020-12-29 07:25

I\'m using Angular 11 with typescript and I don\'t know how to test the paths in which the method raise an exception.

  myMethod() {
    this.myService.callBa         


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