Skip to content

Commit

Permalink
Docs: Added example for how to use restore
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Jan 9, 2018
1 parent a1aced0 commit ed3c9dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/release-source/release/fakes.md
Expand Up @@ -113,4 +113,9 @@ console.log('apple pie');
// 42
```

When you want to restore the replaced properties, `sinon.restore` method.
When you want to restore the replaced properties, simply call the `sinon.restore` method.

```js
// restores all replaced properties set by sinon methods (restore, spy, stub)
sinon.restore();
```

0 comments on commit ed3c9dc

Please sign in to comment.