How to use spyOn in Angular unit testing ?

In this video, you’ll learn how to use spyOn to spy over methods. Using spyOn you can override the method response by returning a fake response. You’ll also learn how to mock a service call using spyOn and callFake.

Source code is available on GitHub

#spyon #mock #stub #karma #jasmine

Angular Unit Testing : Using spyOn to Mock and Stub Methods | Karma | Jasmine
2.75 GEEK