Sinon.JS provides many useful tools beyond the core test double abstractions of spies, stubs, and mocks. We have already been introduced to the
sinon.test wrapper in Chapter 4, Test Spies, and will examine a few more equally convenient helpers in this chapter.
Some test helpers such as timers and servers may require the use of IE-specific Sinon.JS libraries when used with the Internet Explorer web browser. See the relevant Sinon.JS documentation sections for more details.
setTimeout and the
Date class. Once faked, test code must manually ...