npm.io
0.0.6 • Published 9 years ago

should-sinon

Licence
MIT
Version
0.0.6
Deps
0
Vulns
0
Weekly
0
Stars
12

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

Keywords