In this chapter, you learned how asynchronous tests can hurt the quick feedback loop you can get with unit testing. I showed how you can use either stubs or fakes to make your specs run quicker and with fewer dependencies.
We have seen two different ways in which you could test AJAX requests with a simple Jasmine stub and with the more advanced, fake implementation of the
You also got more familiar with spies and stubs and should be more comfortable using them in different scenarios.
In the next chapter, we are going to go further into the complexity of our application, and we will do an overall refactoring to transform it into a fully featured single-page application using the