Test spies Test stubs Mocks Fake timers Fake XHR and server Assertions This page contains light introduction to the topics Sinon.JS implements as well as some examples, all in light of the sinon-qunit plugin. It is currently very basic, but will hopefully improve in the not-so-distant future. See the full API reference for a complete reference of Sinon.JS features. Loading Sinon.JS To set up a tes