sinon
JavaScript test spies, stubs and mocks.
Last updated 5 days ago by fatso83 .
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 <img src="https://saucelabs.com/buildstatus/sinonjs" alt="Sauce Test Status" Coverage Status OpenCollective OpenCollective npm downloads per month CDNJS version

Sauce Test Status

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

  • 7.0.0                                ...           latest (5 days ago)
  • 5.0.1-next.1                                ...           next (6 months ago)

141 Versions

  • 7.0.0                                ...           5 days ago
  • 6.3.5                                ...           16 days ago
  • 6.3.4                                ...           a month ago
  • 6.3.3                                ...           a month ago
  • 6.3.2                                ...           a month ago
  • 6.3.1                                ...           a month ago
  • 6.3.0                                ...           a month ago
  • 6.2.0                                ...           a month ago
  • 6.1.6                                ...           a month ago
  • 6.1.5                                ...           2 months ago
  • 6.1.4                                ...           3 months ago
  • 6.1.3                                ...           3 months ago
  • 6.1.2                                ...           3 months ago
  • 6.1.1                                ...           3 months ago
  • 6.1.0                                ...           4 months ago
  • 6.0.1                                ...           4 months ago
  • 6.0.0                                ...           4 months ago
  • 5.1.1                                ...           4 months ago
  • 5.1.0 [deprecated]           ...           4 months ago
  • 5.0.10                                ...           5 months ago
  • 5.0.9                                ...           5 months ago
  • 5.0.8                                ...           5 months ago
  • 5.0.7                                ...           5 months ago
  • 5.0.6                                ...           5 months ago
  • 5.0.5                                ...           5 months ago
  • 5.0.4                                ...           5 months ago
  • 5.0.3                                ...           6 months ago
  • 5.0.2                                ...           6 months ago
  • 5.0.1                                ...           6 months ago
  • 5.0.1-next.1                                ...           6 months ago
  • 5.0.0-next.4                                ...           7 months ago
  • 4.5.0                                ...           7 months ago
  • 4.4.10 [deprecated]           ...           7 months ago
  • 4.4.9                                ...           7 months ago
  • 4.4.8                                ...           7 months ago
  • 4.4.7                                ...           7 months ago
  • 4.4.6                                ...           7 months ago
  • 4.4.5                                ...           7 months ago
  • 4.4.4                                ...           7 months ago
  • 4.4.3                                ...           7 months ago
  • 4.4.2                                ...           8 months ago
  • 4.4.1                                ...           8 months ago
  • 4.4.0                                ...           8 months ago
  • 4.3.0                                ...           8 months ago
  • 4.2.3                                ...           8 months ago
  • 4.2.2                                ...           9 months ago
  • 4.2.1                                ...           9 months ago
  • 4.2.0                                ...           9 months ago
  • 5.0.0-next.3                                ...           9 months ago
  • 5.0.0-next.2                                ...           9 months ago
  • 4.1.6                                ...           9 months ago
  • 4.1.5 [deprecated]           ...           9 months ago
  • 5.0.0-next.1                                ...           9 months ago
  • 5.0.0 [deprecated]           ...           9 months ago
  • 4.1.4                                ...           9 months ago
  • 4.1.3                                ...           10 months ago
  • 4.1.2                                ...           a year ago
  • 4.1.1                                ...           a year ago
  • 4.1.0                                ...           a year ago
  • 4.0.2                                ...           a year ago
  • 4.0.1                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 3.3.0                                ...           a year ago
  • 3.2.1                                ...           a year ago
  • 3.2.0                                ...           a year ago
  • 3.1.0                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 2.4.1                                ...           a year ago
  • 2.4.0                                ...           a year ago
  • 2.3.8                                ...           a year ago
  • 2.3.7                                ...           a year ago
  • 2.3.6                                ...           a year ago
  • 2.3.5                                ...           a year ago
  • 2.3.4                                ...           a year ago
  • 2.3.3                                ...           a year ago
  • 2.3.2                                ...           a year ago
  • 2.3.1                                ...           a year ago
  • 2.3.0                                ...           a year ago
  • 2.2.0                                ...           a year ago
  • 2.1.0                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 2.0.0-pre.6                                ...           2 years ago
  • 1.17.7                                ...           2 years ago
  • 2.0.0-pre.5                                ...           2 years ago
  • 2.0.0-pre.4                                ...           2 years ago
  • 2.0.0-pre.3                                ...           2 years ago
  • 1.17.6                                ...           2 years ago
  • 1.17.5                                ...           2 years ago
  • 2.0.0-pre.2                                ...           2 years ago
  • 1.17.4                                ...           2 years ago
  • 1.17.3                                ...           3 years ago
  • 2.0.0-pre                                ...           3 years ago
  • 1.17.2                                ...           3 years ago
  • 1.17.1                                ...           3 years ago
  • 1.17.0                                ...           3 years ago
  • 1.16.1                                ...           3 years ago
  • 1.16.0                                ...           3 years ago
  • 1.15.4                                ...           3 years ago
  • 1.15.3                                ...           3 years ago
  • 1.15.2                                ...           3 years ago
  • 1.15.1                                ...           3 years ago
  • 1.15.0                                ...           3 years ago
  • 1.14.1                                ...           4 years ago
  • 1.14.0                                ...           4 years ago
  • 1.13.0                                ...           4 years ago
  • 1.12.2                                ...           4 years ago
  • 1.12.1                                ...           4 years ago
  • 1.12.0                                ...           4 years ago
  • 1.11.1                                ...           4 years ago
  • 1.11.0                                ...           4 years ago
  • 1.10.3                                ...           4 years ago
  • 1.10.2                                ...           4 years ago
  • 1.10.1                                ...           4 years ago
  • 1.10.0                                ...           4 years ago
  • 1.9.0                                ...           5 years ago
  • 1.8.2                                ...           5 years ago
  • 1.9.1                                ...           5 years ago
  • 1.8.1                                ...           5 years ago
  • 1.7.3                                ...           5 years ago
  • 1.7.2                                ...           5 years ago
  • 1.7.1                                ...           5 years ago
  • 1.7.0                                ...           5 years ago
  • 1.6.0                                ...           6 years ago
  • 1.5.2                                ...           6 years ago
  • 1.5.0                                ...           6 years ago
  • 1.4.2                                ...           6 years ago
  • 1.4.1                                ...           6 years ago
  • 1.4.0                                ...           6 years ago
  • 1.3.4                                ...           7 years ago
  • 1.3.3                                ...           7 years ago
  • 1.3.2                                ...           7 years ago
  • 1.3.1                                ...           7 years ago
  • 1.3.0                                ...           7 years ago
  • 1.2.0                                ...           7 years ago
  • 1.1.1                                ...           7 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.2                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 0.6.3                                ...           8 years ago
  • 0.6.2                                ...           8 years ago
Downloads
Today 26
This Week 9,320
This Month 80,419
Last Day 1,828
Last Week 20,786
Last Month 36,828
Dependencies (9)
Dependents (2048)

Copyright 2014 - 2016 © taobao.org |