We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ad44ba commit fa84f07Copy full SHA for fa84f07
index.js
@@ -22,7 +22,7 @@ function stubMethod(service, method, replacement) {
22
if (!isStubbed(service)) stubService(service);
23
if (!replacement) return sinon.stub(getService(service).prototype, method);
24
25
- return sinon.stub(getService(service).prototype, method, function(params, callback) {
+ return sinon.stub(getService(service).prototype, method).callsFake(function(params, callback) {
26
var _this = { request: stubRequest(), response: stubResponse() };
27
replacement.call(_this, params, callback);
28
return _this.request;
0 commit comments