An open API service indexing awesome lists of open source software.

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

Sinon.JS and the referee assertion library in one package
https://github.com/sinonjs/referee-sinon

assertions javascript sinon testing

Last synced: 4 days ago
JSON representation

Sinon.JS and the referee assertion library in one package

Awesome Lists containing this project

README

        

# referee-sinon

[![codecov](https://codecov.io/gh/sinonjs/referee-sinon/branch/main/graph/badge.svg)](https://codecov.io/gh/sinonjs/referee-sinon)
Contributor Covenant

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

## Usage

Install:

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

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

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

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

Or, [if you can make use][compat] of [destructuring assignments][mdn]:

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

[compat]: http://kangax.github.io/compat-table/es6/#test-destructuring
[mdn]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment

## 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](https://opencollective.com/sinon#backer)]






























## Sponsors

Become a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor](https://opencollective.com/sinon#sponsor)]






























## Licence

referee-sinon was released under [BSD-3](LICENSE)