sinon-chai
Advanced tools
Comparing version 2.6.0 to 2.7.0
@@ -12,4 +12,4 @@ { | ||
], | ||
"version": "2.6.0", | ||
"author": "Domenic Denicola <domenic@domenicdenicola.com> (http://domenic.me/)", | ||
"version": "2.7.0", | ||
"author": "Domenic Denicola <d@domenic.me> (https://domenic.me/)", | ||
"license": "WTFPL", | ||
@@ -19,4 +19,3 @@ "repository": "domenic/sinon-chai", | ||
"files": [ | ||
"LICENSE.txt", | ||
"lib/*" | ||
"lib" | ||
], | ||
@@ -29,3 +28,3 @@ "scripts": { | ||
"peerDependencies": { | ||
"chai": ">=1.9.2 <2", | ||
"chai": ">=1.9.2 <3", | ||
"sinon": ">=1.4.0 <2" | ||
@@ -32,0 +31,0 @@ }, |
@@ -130,2 +130,13 @@ # Sinon.JS Assertions for Chai | ||
Note that you can negate any assertion with Chai's `.not`. E. g. for `notCalled` use `spy.should.have.not.been.called`. | ||
For `assert` interface there is no need for this library. You can install [Sinon.JS assertions][sinonassertions] right into Chai's `assert` object with `expose`: | ||
```javascript | ||
var chai = require("chai"); | ||
var sinon = require("sinon"); | ||
sinon.assert.expose(chai.assert, { prefix: "" }); | ||
``` | ||
## Examples | ||
@@ -233,2 +244,3 @@ | ||
[spymethods]: http://sinonjs.org/docs/#spies-api | ||
[sinonassertions]: http://sinonjs.org/docs/#assertions | ||
[Mocha]: http://visionmedia.github.com/mocha/ | ||
@@ -235,0 +247,0 @@ [fixturedemo]: https://github.com/domenic/sinon-chai/tree/master/test/ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
249
13237
3