-
-
Notifications
You must be signed in to change notification settings - Fork 768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add documentation about sinon.restoreObject() #2106
add documentation about sinon.restoreObject() #2106
Conversation
@franck-romano Thank you so much. We really appreciate your contribution. A few things to add:
|
18ab840
to
30cbb6e
Compare
3be2608
to
82f0a9b
Compare
@fearphage Yes sorry, I didn't know why |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good. Thanks for adding the blurb about throwing errors. I have a few small suggestions.
docs/release-source/release/utils.md
Outdated
|
||
### `sinon.restoreObject(object);` | ||
|
||
Restores all methods of an object and returns the restored object |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restores all methods of an object and returns the restored object | |
Restores all methods of an object and returns the restored object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done ✔️
docs/release-source/release/utils.md
Outdated
sinon.restoreObject(obj); | ||
``` | ||
|
||
Throws an error if the object is empty since no stubs, spies or mock are restorable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Throws an error if the object is empty since no stubs, spies or mock are restorable | |
Throws an error if the object contains no restorable methods (spies, stubs, etc). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done ✔️
710167c
to
af45f4e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks again!
I'll give a little time in case anyone else wants to chime in.
Nice, it was a pleasure. Keep it up the good work, sinon is a very nice library ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thank you!
Add documentation about
sinon.restoreObject()
related to #2089How to verify
npm install
utils
section and seesinon.restoreObject(object);