diff --git a/lib/sinon/mock-expectation.js b/lib/sinon/mock-expectation.js index 05603de22..ece7fa6a1 100644 --- a/lib/sinon/mock-expectation.js +++ b/lib/sinon/mock-expectation.js @@ -182,7 +182,7 @@ var mockExpectation = { mockExpectation.fail(this.method + " received wrong arguments " + format(args) + ", expected " + format(expectedArguments)); } - }); + }, this); }, allowsCall: function allowsCall(thisValue, args) {