Getting Started Hi this is Jesse Liberty from Pluralsight. In this module, Getting Started, we're going to dive right in and start doing tests specifications for behavior driven development.
Spy vs. Spy Hi this is Jesse Liberty continuing with AngularJS testing from scratch. Now that we have the fundamentals of testing AngularJS under our belt, it's time to look at a couple advanced techniques. Matchers are the mechanism used in expect statements. Jasmine comes with a number of built in matchers, such as toBe, we've seen that already, expect such and such to be five and a host of others. But it's also very straightforward to create your own custom matchers. And we'll take a look at what's involved in doing so. We'll then go on to discuss what other testing frameworks called doubles, fakes, and mocks and in Jasmine is called Jasmine spies. A spy is a special type of function that records all of the interactions that happen with it. They are incredibly useful when a returned value or change in an object state cannot be used to determine if a test expectation succeeded. (waiting)