- Jasmine Spies help us to mock the execution of the method / function.
- It’s a easy way to check a method was called or not, without leaving Subject Under Test(SUT).
- We can chain the spyOn method to get dummy return value using .and.returnvalue()
- spyOn can call the original function using .and.callThrough().
No comments:
Post a Comment