-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Hi,
When I use should the following way:
var sinon = require('sinon');
var should = require('should');
require('./should-sinon');
var callback = sinon.spy();
callback.should.not.be.called();All works as expected. However, when I use should as function, the adapter works not as expected
var sinon = require('sinon');
var should = require('should/as-function');
require('./should-sinon');
var callback = sinon.spy();
should(callback)not.be.called(); // throws callback.called is not a functionThe problem is that adapter use should by default here https://github.com/shouldjs/sinon/blob/master/should-sinon.js#L1-L9
Metadata
Metadata
Assignees
Labels
No labels