diff --git a/docs/_releases/v2.1.0/stubs.md b/docs/_releases/v2.1.0/stubs.md index 0ec4a54dd..37299d26d 100644 --- a/docs/_releases/v2.1.0/stubs.md +++ b/docs/_releases/v2.1.0/stubs.md @@ -76,7 +76,7 @@ Replaces `object.method` with a stub function. An exception is thrown if the pro The original function can be restored by calling `object.method.restore();` (or `stub.restore();`). -#### `var stub = sinon.stub(object, "method", func);` +#### `var stub = sinon.stub(object, "method").callsFake(func);` Replaces `object.method` with a `func`, wrapped in a `spy`.