Skip to content
Permalink
Browse files
Docs: Added example for how to use restore
  • Loading branch information
mroderick committed Jan 9, 2018
1 parent a1aced0 commit ed3c9dc3cff4ed5be71ec99052e3eb8189307c1f
Showing 1 changed file with 6 additions and 1 deletion.
@@ -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.