Aliasger Jaffer
Aliasger Jaffer's Blog

Aliasger Jaffer's Blog

Series

Angular Testing

In this series, I will go over basics of writing tests for Angular based application artifacts

Articles in this series

Testing Angular Service with Observables

Sep 28, 20215 min read

In this post, we will write a small service that returns an Observable of number, and then see how we can write a unit test to test the method. To start, our service will be called DataService and it will contain a single method called getObservableD...

Testing Angular Service with Observables
Mocking dependencies in Angular
Mocking Http dependency in Angular
Testing asynchronous code in Angular
Testing a simple angular component
Testing a component depending on  ActivatedRoute's queryParamMap object