Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 374 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 374 Bytes

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