Testing a component depending on ActivatedRoute's queryParamMap object
Use jasmine spy and the RouterTestingModule
Oct 6, 20212 min read977

Search for a command to run...
Series
In this series, I will go over basics of writing tests for Angular based application artifacts
Use jasmine spy and the RouterTestingModule

Correctly set up your test and check the html output value

Microtask and macrotask queues

How to test Angular services that make Http calls

Don't create your own object to mock the dependency, use jasmine

Learn how to test a method that returns an Observable data
