sinonjs / referee-sinon

Sinon.JS and the referee assertion library in one package

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Sinon.JS and the referee assertion library in one package

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

License:Other


Languages

Language:JavaScript 99.8%Language:Shell 0.2%