Skip to content

Commit fa84f07

Browse files
author
jakepruitt
committed
Remove warnings of deprecation from sinon
1 parent 2ad44ba commit fa84f07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function stubMethod(service, method, replacement) {
2222
if (!isStubbed(service)) stubService(service);
2323
if (!replacement) return sinon.stub(getService(service).prototype, method);
2424

25-
return sinon.stub(getService(service).prototype, method, function(params, callback) {
25+
return sinon.stub(getService(service).prototype, method).callsFake(function(params, callback) {
2626
var _this = { request: stubRequest(), response: stubResponse() };
2727
replacement.call(_this, params, callback);
2828
return _this.request;

0 commit comments

Comments
 (0)