should-sinon

Sinon.js assertions for should.js

MIT 6 个版本
安装
npm install should-sinon
yarn add should-sinon
pnpm add should-sinon
bun add should-sinon
README

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();
});
版本列表
0.0.6 2017-08-31
0.0.5 2016-01-29
0.0.4 2016-01-29
0.0.3 2015-06-23
0.0.2 2015-06-23
0.0.1 2015-05-14