Testing a component depending on ActivatedRoute's queryParamMap object
Use jasmine spy and the RouterTestingModule

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
