diff --git a/docs/index.html b/docs/index.html index 3fc9adc..fa476da 100644 --- a/docs/index.html +++ b/docs/index.html @@ -452,8 +452,9 @@
object.method with a stub function. The original
function can be restored by calling object.method.restore();
- (or stub.restore();). An exception is thrown if the property
- is not already a function, to help avoid typos when stubbing methods.
+ (or stub.restore(); and sinon.restore(stub);).
+ An exception is thrown if the property is not already a function, to
+ help avoid typos when stubbing methods.
var stub = sinon.stub(object, "method", func);MyConstructor,
but don't want the constructor to be invoked, use this utility
function:
- var stub = sinon.createStubInstance(MyConstructor)
+ var stub = sinon.createStubInstance(MyConstructor)sinon.restore(obj);
stub.withArgs(arg1[, arg2, ...]);sinon.restore(obj)sinon.format(object)