Standalone and test framework agnostic JavaScript test spies, stubs and mocks.
via npm (node package manager)
$ sudo npm install sinon
or install via git by cloning the repository and including sinon.js in your project, as you would any other third party library.
See the sinon project homepage
- No global pollution
- Easy to use
- Require minimal “integration”
- Easy to embed seamlessly with any testing framework
- Easily fake any interface
- Ship with ready-to-use fakes for XMLHttpRequest, timers and more
Check out todo.org in the project repository