sinonjs / referee-sinon

Sinon.JS and the referee assertion library in one package
https://sinonjs.github.io/referee-sinon/
Other
5 stars 4 forks source link
assertions javascript sinon testing

referee-sinon

codecov Contributor Covenant

Sinon.JS and the referee assertion library in one package.

Usage

Install:

npm install @sinonjs/referee-sinon --save-dev

Note that you don't need to install @sinonjs/referee or sinon.

const referee = require("@sinonjs/referee-sinon");

const assert = referee.assert;
const refute = referee.refute;
const sinon = referee.sinon;

Or, if you can make use of destructuring assignments:

const { assert, refute, sinon } = require("@sinonjs/referee-sinon");

Prebuilt global/AMD version

When installing from npm, there is a pre-built global/AMD version in the dist/ folder.

Documentation

https://sinonjs.github.io/referee-sinon/

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

referee-sinon was released under BSD-3