Index: remoting/webapp/js_proto/sinon_proto.js |
diff --git a/remoting/webapp/js_proto/sinon_proto.js b/remoting/webapp/js_proto/sinon_proto.js |
index c0aac4c8c45d4d3499a1c1df872d1fbf2688d31b..827d38d15592cf8d00f3ef46e99d09bd715b3091 100644 |
--- a/remoting/webapp/js_proto/sinon_proto.js |
+++ b/remoting/webapp/js_proto/sinon_proto.js |
@@ -61,6 +61,11 @@ sinon.Mock = function() {}; |
*/ |
sinon.Mock.prototype.expects = function(method) {}; |
+/** |
+ * @return {void} |
+ */ |
+sinon.Mock.prototype.restore = function() {}; |
+ |
/** @type {function(...):Function} */ |
sinon.spy = function() {}; |
@@ -103,12 +108,12 @@ sinon.Spy.prototype.restore = function() {}; |
sinon.Spy.prototype.args; |
/** |
- * @param {Object} obj |
- * @param {string} method |
+ * @param {Object=} opt_obj |
+ * @param {string=} opt_method |
* @param {Function=} opt_stubFunction |
* @return {sinon.TestStub} |
*/ |
-sinon.stub = function(obj, method, opt_stubFunction) {}; |
+sinon.stub = function(opt_obj, opt_method, opt_stubFunction) {}; |
/** |
* TODO(jrw): rename to |sinon.Stub| for consistency |
@@ -131,6 +136,9 @@ sinon.TestStub.prototype.withArgs = function() {}; |
/** @type {function(...):sinon.Expectation} */ |
sinon.TestStub.prototype.onFirstCall = function() {}; |
+/** @type {function(...):sinon.Expectation} */ |
+sinon.TestStub.prototype.callsArgWith = function() {}; |
+ |
/** @returns {Object} */ |
sinon.createStubInstance = function (/** * */ constructor) {}; |