In this chapter, you have seen how to test asynchronous code, a scenario common when testing server interactions (AJAX). I have showed you how to use the different Jasmine global functions such as waitsFor()
and runs
to test asynchronous code.
I have also presented you 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.