From 1e81ec32d7fe696debd9284c3cb15dcffbfff45c Mon Sep 17 00:00:00 2001 From: 43081j <43081j@users.noreply.github.com> Date: Sun, 12 Jan 2020 18:35:26 +0000 Subject: [PATCH] docs: add `wrappedMethod` line --- docs/release-source/release/stubs.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/release-source/release/stubs.md b/docs/release-source/release/stubs.md index c8c9c911b..c6343dac1 100644 --- a/docs/release-source/release/stubs.md +++ b/docs/release-source/release/stubs.md @@ -335,7 +335,7 @@ Causes the stub to throw the provided exception object. Causes the stub to throw the exception returned by the function. -### `stub.throwsArg(index);` +#### `stub.throwsArg(index);` Causes the stub to throw the argument at the provided index. @@ -684,3 +684,7 @@ stub.restore() myObj.example; // 'oldValue' ``` +#### `stub.wrappedMethod` + +Holds a reference to the original method/function this stub has +wrapped.