Angular How to test a Component which requires a Location
问题 Hello and thank you for your time! I am learning how to use Angular and I am interested in learning how to test its Components. Currently I am struggling because I have done the Tour of Heroes tutorial of the Angular page and I am testing the code to understand it better. The point is that I am testing hero-details component which code is: import {Component, OnInit, Input} from '@angular/core'; import {ActivatedRoute} from '@angular/router'; import {MyHeroService} from '../hero-service/my