Back to Browse

EP 13.13 - Angular / Unit Testing / Routing

27.7K views
Dec 26, 2018
5:30

📚 Read the book 👉 https://go.asim.dev/angular-book 🔥 Level up your JavaScript 👉 https://go.asim.dev/advjs 🌿 If you find my videos useful please consider planting a tree for me 👉 https://go.asim.dev/trees 🎥 Watch the full playlist 👉 https://go.asim.dev/angular-playlist The best place to view the code associated with this course is in the online book (https://go.asim.dev/angular-book) via the book if a lecture has code associated with it, it then also has a link to a stackblitz instance so you can run and edit the code sample online. We can test routing in Angular by using RouterTestingModule instead of RouterModule to provide our routes. This uses a spy implementation of Location which doesn’t trigger a request for a new URL but does let us know the target URL which we can use in our test specs.

Download

1 formats

Video Formats

360pmp47.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

EP 13.13 - Angular / Unit Testing / Routing | NatokHD