You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All works as expected. However, when I use should as function, the adapter works not as expected
varsinon=require('sinon');varshould=require('should/as-function');require('./should-sinon');varcallback=sinon.spy();should(callback)not.be.called();// throws callback.called is not a function
// still workvarsinon=require('sinon');varshould=require('should');require('should-sinon');// this also will workvarsinon=require('sinon');varshould=require('should/as-function');varshouldSinon=require('should-sinon');shouldSinon(should);
Hi,
When I use should the following way:
All works as expected. However, when I use should as function, the adapter works not as expected
The problem is that adapter use should by default here https://github.com/shouldjs/sinon/blob/master/should-sinon.js#L1-L9
The text was updated successfully, but these errors were encountered: