Used spy function on service inside a controller and it does not execute “then” clause (Karma Jasmine AngularJS)

后端 未结 0 545
情话喂你
情话喂你 2021-02-04 06:31

I used spy function inside a test in karma and tried testing if it executes and if it changes the value of a variable inside my scope.

This is the controller code:

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