should-sinon
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/should-sinon package

0.0.6 • Public • Published

should-sinon

Sinon.js bindings for should.js.

Install

$ npm install should-sinon --save-dev

Example

var sinon = require('sinon');
var should = require('should');
require('should-sinon');
 
it('should get number of calls', function() {
  var callback = sinon.spy();
  callback();
  callback.should.be.calledOnce();
});

Readme

Keywords

Package Sidebar

Install

npm i should-sinon

Weekly Downloads

30,014

Version

0.0.6

License

MIT

Last publish

Collaborators

  • btd