Skip to content

Commit

Permalink
Add link to sinon.replace from fake
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Apr 30, 2018
1 parent 92dc963 commit 93d182f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/_releases/v5.0.1/fakes.md
Expand Up @@ -157,7 +157,7 @@ f.lastCall.lastArg === date2;

Unlike `sinon.spy` and `sinon.stub`, `sinon.fake` only knows about creating fakes, not about replacing properties in the system under test.

To replace a property, you can use the `sinon.replace` method.
To replace a property, you can use the [`sinon.replace`](../sandbox/sandboxreplaceobject-property-replacement) method.

```js
var fake = sinon.fake.returns('42');
Expand Down
2 changes: 1 addition & 1 deletion docs/release-source/release/fakes.md
Expand Up @@ -157,7 +157,7 @@ f.lastCall.lastArg === date2;

Unlike `sinon.spy` and `sinon.stub`, `sinon.fake` only knows about creating fakes, not about replacing properties in the system under test.

To replace a property, you can use the `sinon.replace` method.
To replace a property, you can use the [`sinon.replace`](../sandbox/sandboxreplaceobject-property-replacement) method.

```js
var fake = sinon.fake.returns('42');
Expand Down

0 comments on commit 93d182f

Please sign in to comment.