I ran into this problem whilst writing a unit test using the Jasmine framework and this is how I solved it. The code under test I wanted a test to check the http.get method was called. Note that there is query parameter, expand=true, the importance of which will become apparent […]
Estimated reading time: 5 minutes
A quick tip to save you wasting time wondering why Karma isn’t running your test. Whilst continuing to work through Joe Eames excellent Plurasight course Unit Testing in Angular I came across a problem whereby all tests in one file was not being run by Karma. I was expecting to see tests under […]
Estimated reading time: 1 minute
In this post I will show you how to write an automated unit test in Angular using the Jasmine\Karma framework to assert the correct array element has been deleted. The Unit Test will use the Arrange, Act and Assert (AAA) Pattern and to keep the post on focused on the […]
Estimated reading time: 3 minutes
After watching and coding along to Deborah Kurata’s superb Pluralsight course on Angular Routing. I needed a place where I could practise some of the things I had learnt. So using the Chuck Norris API I built an app, which you can find on GitHub, where I have tried to […]
Estimated reading time: 1 minute
Whilst working through Deborah Kurata’s superb Pluralsight Course on Angular Routing, in module 9 Styling, Animating, and Watching Routes, she mentions if you want the spinner to appear whilst the products are loaded for the product list page you can create a resolver. In this post I show you how […]
Estimated reading time: 2 minutes