I am trying to mock a router in spec file. I use route.snapshot.url[0] to get the 0 value of the url And i want to mock that because else my spec fails giving error as undefined as object this.route.snapshot.url[0] It cant evaluate the mock properly.
How can i do that ?
Aucun commentaire:
Enregistrer un commentaire