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();
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.6
    28,397
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.6
    28,397
  • 0.0.5
    916
  • 0.0.4
    2
  • 0.0.3
    166
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i should-sinon

Weekly Downloads

29,481

Version

0.0.6

License

MIT

Last publish

Collaborators

  • btd