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
Please include a report to get the called.with assertions which shows which arguments were actually called.
This is a suggestion I came up with:
in spy.js, for any called.with assertion, add the argument spy.calls.find(args => !_.eql(args, expArgs))
not sure if its possible to react to negations - that would be the only problem
this.assert(passed>0,'expected '+this._obj+' to have been called with #{exp}','expected '+this._obj+' to have not been called with #{exp} but got '+passed+' times',expArgs,spy.calls.find(args=>!_.eql(args,expArgs)));
thanks and best regards
The text was updated successfully, but these errors were encountered:
Please include a report to get the called.with assertions which shows which arguments were actually called.
This is a suggestion I came up with:
in spy.js, for any called.with assertion, add the argument
spy.calls.find(args => !_.eql(args, expArgs))
not sure if its possible to react to negations - that would be the only problem
thanks and best regards
The text was updated successfully, but these errors were encountered: