Front-End Insights

#4 Testing with Jasmine – spies


Hello everyone! Welcome to the fourth article in my “testing with Jasmine” series! In the previous post I presented matchers and several other functions. This time we will discuss “spies” which are a kind of stubs in the Jasmine test framework. We can use them to “spy” if functions are invoked and the parameters that were passed to them. Ok, let’s start our journey!