| Index: remoting/webapp/unittests/sinon_helpers.js
|
| diff --git a/remoting/webapp/unittests/sinon_helpers.js b/remoting/webapp/unittests/sinon_helpers.js
|
| index 763a9391f370cab96d5c1f987fa67c55ab112ba6..1524b4077ffa1eb18477ef58c6c3ba20507045ad 100644
|
| --- a/remoting/webapp/unittests/sinon_helpers.js
|
| +++ b/remoting/webapp/unittests/sinon_helpers.js
|
| @@ -9,11 +9,12 @@ sinonHelpers.reset = function() {
|
| /**
|
| * @param {Object} obj
|
| * @param {string} method
|
| + * @param {Function=} opt_stubFunction
|
| * @return {sinon.TestStub}
|
| * @suppress {reportUnknownTypes}
|
| */
|
| -sinon.$setupStub = function(obj, method) {
|
| - sinon.stub(obj, method);
|
| +sinon.$setupStub = function(obj, method, opt_stubFunction) {
|
| + sinon.stub(obj, method, opt_stubFunction);
|
| obj[method].$testStub = /** @type {sinon.TestStub} */ (obj[method]);
|
| return obj[method].$testStub;
|
| };
|
|
|