Sinon is a mocking framework for JavaScript, which can create spies, stubs and mocks.
Sinon is javascript framework to create test spies, stubs and mocks that can be used with any JavaScript unit testing framework. It is also shipped as part of the Buster.JS unit test framework.
- Documentation: http://sinonjs.org/docs/
- GitHub: https://github.com/sinonjs/sinon
- npm: https://www.npmjs.com/package/sinon