Testing Services
When testing services in Angular we employ many of the same techniques and strategies used for testing components. Services, like components, are classes with methods and properties that we want to verify. Data is the main emphasis in testing services - are we getting, storing and propagating data correctly.
原文: https://angular-2-training-book.rangle.io/handout/testing/services/