Rangle.io : Angular Training
Search…
⌃K
Introduction
License
Why Angular?
The Architect's Guide to Angular
EcmaScript 6 and TypeScript Features
The JavaScript Toolchain
Bootstrapping an Angular Application
Components in Angular
Directives
Advanced Components
Observables
Angular Dependency Injection
Http
Change Detection
Zone.js
Advanced Angular
What is Immutability
Pipes
Forms
Modules
Routing
State Management
TDD Testing
The Testing Toolchain
Test Setup
Simple Test
Using Chai
Testing Components
Testing Services
Testing Strategies for Services
Testing HTTP Requests
Executing Tests Asynchronously
Migrating AngularJS Projects to Angular
Project Setup
Angular CLI
Accessibility in Angular
Internationalization in Angular
Glossary
Further Reading And Reference
Powered By GitBook

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.
Previous
Refactoring Hard-to-Test Code
Next
Testing Strategies for Services
Last modified 3yr ago
Copy link