sinon
JavaScript test spies, stubs and mocks.
Last updated a day ago by mrgnrdrck .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sinon 
SYNC missed versions from official npm registry.

Sinon.JS
Sinon.JS

Standalone and test framework agnostic JavaScript test spies, stubs and mocks (pronounced "sigh-non", named after Sinon, the warrior).

npm version Join the chat at https://gitter.im/sinonjs/sinon Build status Sauce Test Status Codecov status OpenCollective OpenCollective npm downloads per month CDNJS version Contributor Covenant

Sauce Test Status

Compatibility

For details on compatibility and browser support, please see COMPATIBILITY.md

Installation

via npm

$ npm install sinon

or via sinon's browser builds available for download on the homepage. There are also npm based CDNs one can use.

Usage

See the sinon project homepage for documentation on usage.

If you have questions that are not covered by the documentation, you can check out the sinon tag on Stack Overflow or drop by #sinon.js on irc.freenode.net:6667.

You can also search through the Sinon.JS mailing list archives.

Goals

  • 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

Contribute?

See CONTRIBUTING.md for details on how you can contribute to Sinon.JS

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on GitHub with a link to your site. [Become a sponsor]

Licence

Sinon.js was released under BSD-3

Current Tags

  • 9.0.3                                ...           latest (a day ago)
  • 5.0.1-next.1                                ...           next (2 years ago)

166 Versions

  • 9.0.3                                ...           a day ago
  • 9.0.2                                ...           4 months ago
  • 9.0.1                                ...           5 months ago
  • 9.0.0                                ...           6 months ago
  • 8.1.1                                ...           7 months ago
  • 8.1.0                                ...           7 months ago
  • 8.0.4                                ...           7 months ago
  • 8.0.3                                ...           7 months ago
  • 8.0.2                                ...           7 months ago
  • 8.0.1                                ...           8 months ago
  • 8.0.0                                ...           8 months ago
  • 7.5.0                                ...           a year ago
  • 7.4.2                                ...           a year ago
  • 7.4.1                                ...           a year ago
  • 7.3.2                                ...           a year ago
  • 7.3.1                                ...           a year ago
  • 7.3.0                                ...           a year ago
  • 7.2.7                                ...           a year ago
  • 7.2.6                                ...           a year ago
  • 7.2.5                                ...           a year ago
  • 7.2.4                                ...           a year ago
  • 7.2.3                                ...           2 years ago
  • 7.2.2                                ...           2 years ago
  • 7.2.1                                ...           2 years ago
  • 7.2.0                                ...           2 years ago
  • 7.1.1                                ...           2 years ago
  • 7.1.0                                ...           2 years ago
  • 7.0.0                                ...           2 years ago
  • 6.3.5                                ...           2 years ago
  • 6.3.4                                ...           2 years ago
  • 6.3.3                                ...           2 years ago
  • 6.3.2                                ...           2 years ago
  • 6.3.1                                ...           2 years ago
  • 6.3.0                                ...           2 years ago
  • 6.2.0                                ...           2 years ago
  • 6.1.6                                ...           2 years ago
  • 6.1.5                                ...           2 years ago
  • 6.1.4                                ...           2 years ago
  • 6.1.3                                ...           2 years ago
  • 6.1.2                                ...           2 years ago
  • 6.1.1                                ...           2 years ago
  • 6.1.0                                ...           2 years ago
  • 6.0.1                                ...           2 years ago
  • 6.0.0                                ...           2 years ago
  • 5.1.1                                ...           2 years ago
  • 5.1.0 [deprecated]           ...           2 years ago
  • 5.0.10                                ...           2 years ago
  • 5.0.9                                ...           2 years ago
  • 5.0.8                                ...           2 years ago
  • 5.0.7                                ...           2 years ago
  • 5.0.6                                ...           2 years ago
  • 5.0.5                                ...           2 years ago
  • 5.0.4                                ...           2 years ago
  • 5.0.3                                ...           2 years ago
  • 5.0.2                                ...           2 years ago
  • 5.0.1                                ...           2 years ago
  • 5.0.1-next.1                                ...           2 years ago
  • 5.0.0-next.4                                ...           2 years ago
  • 4.5.0                                ...           2 years ago
  • 4.4.10 [deprecated]           ...           2 years ago
  • 4.4.9                                ...           2 years ago
  • 4.4.8                                ...           2 years ago
  • 4.4.6                                ...           2 years ago
  • 4.4.5                                ...           2 years ago
  • 4.4.4                                ...           2 years ago
  • 4.4.3                                ...           2 years ago
  • 4.4.2                                ...           2 years ago
  • 4.4.1                                ...           2 years ago
  • 4.4.0                                ...           2 years ago
  • 4.3.0                                ...           3 years ago
  • 4.2.3                                ...           3 years ago
  • 4.2.2                                ...           3 years ago
  • 4.2.1                                ...           3 years ago
  • 4.2.0                                ...           3 years ago
  • 5.0.0-next.3                                ...           3 years ago
  • 4.1.6                                ...           3 years ago
  • 4.1.5 [deprecated]           ...           3 years ago
  • 5.0.0-next.1                                ...           3 years ago
  • 5.0.0 [deprecated]           ...           3 years ago
  • 4.1.4                                ...           3 years ago
  • 4.1.3                                ...           3 years ago
  • 4.1.2                                ...           3 years ago
  • 4.1.1                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.0.2                                ...           3 years ago
  • 4.0.1                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.3.0                                ...           3 years ago
  • 3.2.1                                ...           3 years ago
  • 3.2.0                                ...           3 years ago
  • 3.1.0                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 2.4.1                                ...           3 years ago
  • 2.4.0                                ...           3 years ago
  • 2.3.8                                ...           3 years ago
  • 2.3.7                                ...           3 years ago
  • 2.3.6                                ...           3 years ago
  • 2.3.5                                ...           3 years ago
  • 2.3.4                                ...           3 years ago
  • 2.3.3                                ...           3 years ago
  • 2.3.2                                ...           3 years ago
  • 2.3.1                                ...           3 years ago
  • 2.3.0                                ...           3 years ago
  • 2.2.0                                ...           3 years ago
  • 2.1.0                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 2.0.0-pre.6                                ...           3 years ago
  • 1.17.7                                ...           4 years ago
  • 2.0.0-pre.5                                ...           4 years ago
  • 2.0.0-pre.4                                ...           4 years ago
  • 2.0.0-pre.3                                ...           4 years ago
  • 1.17.6                                ...           4 years ago
  • 1.17.5                                ...           4 years ago
  • 2.0.0-pre.2                                ...           4 years ago
  • 1.17.4                                ...           4 years ago
  • 1.17.3                                ...           5 years ago
  • 2.0.0-pre                                ...           5 years ago
  • 1.17.2                                ...           5 years ago
  • 1.17.1                                ...           5 years ago
  • 1.17.0                                ...           5 years ago
  • 1.16.1                                ...           5 years ago
  • 1.16.0                                ...           5 years ago
  • 1.15.4                                ...           5 years ago
  • 1.15.3                                ...           5 years ago
  • 1.15.2                                ...           5 years ago
  • 1.15.1                                ...           5 years ago
  • 1.15.0                                ...           5 years ago
  • 1.14.1                                ...           5 years ago
  • 1.14.0                                ...           5 years ago
  • 1.13.0                                ...           5 years ago
  • 1.12.2                                ...           6 years ago
  • 1.12.1                                ...           6 years ago
  • 1.12.0                                ...           6 years ago
  • 1.11.1                                ...           6 years ago
  • 1.11.0                                ...           6 years ago
  • 1.10.3                                ...           6 years ago
  • 1.10.2                                ...           6 years ago
  • 1.10.1                                ...           6 years ago
  • 1.10.0                                ...           6 years ago
  • 1.9.0                                ...           6 years ago
  • 1.8.2                                ...           7 years ago
  • 1.9.1                                ...           6 years ago
  • 1.8.1                                ...           7 years ago
  • 1.7.3                                ...           7 years ago
  • 1.7.2                                ...           7 years ago
  • 1.7.1                                ...           7 years ago
  • 1.7.0                                ...           7 years ago
  • 1.6.0                                ...           7 years ago
  • 1.5.2                                ...           8 years ago
  • 1.5.0                                ...           8 years ago
  • 1.4.2                                ...           8 years ago
  • 1.4.1                                ...           8 years ago
  • 1.4.0                                ...           8 years ago
  • 1.3.4                                ...           8 years ago
  • 1.3.3                                ...           8 years ago
  • 1.3.2                                ...           8 years ago
  • 1.3.1                                ...           9 years ago
  • 1.3.0                                ...           9 years ago
  • 1.2.0                                ...           9 years ago
  • 1.1.1                                ...           9 years ago
  • 1.1.0                                ...           9 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.0                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 0.6.3                                ...           10 years ago
  • 0.6.2                                ...           10 years ago
Downloads
Today 23
This Week 6,055
This Month 18,679
Last Day 1,869
Last Week 11,516
Last Month 53,255
Dependencies (7)
Dev Dependencies (27)
Dependents (2727)

Copyright 2014 - 2016 © taobao.org |