Summary

In this chapter, you have seen how to test asynchronous code, a scenario common when testing server interactions (AJAX).

I have also presented you with the Node.js platform and used it to code a simple server to be used as a test fixture.

In Chapter 6, Light Speed Unit Testing, we are going to see different solutions to AJAX testing—solutions that don't require a server running.

In the next chapter, we are going to learn about spies and how we can use them to perform behavior checking.

Get Jasmine JavaScript Testing - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.