O'Reilly logo

Jasmine JavaScript Testing - Second Edition by Paulo Ragonha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required