JavaScript Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci removed node v4; added node v10 May 29, 2018
.github Update issue templates May 11, 2018
docs Fix format of links to spy docs in fakes.md Aug 20, 2018
lib Remove unused local function valueToString Aug 6, 2018
scripts Add dependency version warnings to preversion.sh (#1862) Jul 21, 2018
test Review: only wrap the sort function Aug 9, 2018
.editorconfig Add subdir eslintrc for mjs Mar 8, 2018
.eslintignore Make workable bundle May 25, 2018
.eslintrc.yml added eslint rule to catch prototype method usage #1826 Jul 28, 2018
.gitignore Prepare documentation using site in GitHub Pages Dec 8, 2016
.markdownlintrc Allow html element var in markdown Mar 3, 2018
.min-wd Experiment over Jun 28, 2017
.npmrc Ensure that we always use loose versioning Jul 21, 2018
.travis.yml fixed coveralls integration Jun 2, 2018
AUTHORS Update History.md and AUTHORS for new release Aug 9, 2018
CONTRIBUTING.md Use https everywhere and remove legacy links Jul 30, 2018
Gemfile Specify same version of github-pages as github Dec 28, 2016
Gemfile.lock Use migration guide include in guide index (#1838) Jun 14, 2018
History.md Update History.md and AUTHORS for new release Aug 9, 2018
LICENSE Update copyright year to current Mar 21, 2017
README.md Use https everywhere and remove legacy links Jul 30, 2018
RELEASE.md Rename Changelog.txt to History.md Sep 18, 2017
build.js fixed remaining eslint issues Jul 28, 2018
eslint-local-rules.js added eslint rule to catch prototype method usage #1826 Jul 28, 2018
package-lock.json 6.1.5 Aug 9, 2018
package.json 6.1.5 Aug 9, 2018
rollup.config.js Append named exports to the generated esm bundle Jun 9, 2018

README.md

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 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