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
- Host: GitHub
- URL: https://github.com/sinonjs/referee-sinon
- Owner: sinonjs
- License: other
- Created: 2012-10-03T20:18:03.000Z (over 12 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T06:40:08.000Z (about 1 year ago)
- Last Synced: 2025-04-11T01:25:33.614Z (16 days ago)
- Topics: assertions, javascript, sinon, testing
- Language: JavaScript
- Homepage: https://sinonjs.github.io/referee-sinon/
- Size: 8.1 MB
- Stars: 5
- Watchers: 5
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Authors: AUTHORS
Awesome Lists containing this project
README
# referee-sinon
[](https://codecov.io/gh/sinonjs/referee-sinon)
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)