Using Jasmine Spies to Create Mocks and Simplify the Scope of Your Tests
Jasmine spies are a great and easy way to create mock objects for testing. By using a Spy object, you remove the need to create your own function and class stubs just to satisfy test dependencies.
Some TypeScript Code
Let’s say you have this service for saving a person:
iperson-service.ts
/// <reference…