Skip to content
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

Update sinon spy api documentation #1317

Closed
ckwong90 opened this issue Mar 6, 2017 · 2 comments
Closed

Update sinon spy api documentation #1317

ckwong90 opened this issue Mar 6, 2017 · 2 comments
Assignees

Comments

@ckwong90
Copy link

ckwong90 commented Mar 6, 2017

I was looking a way to spy on an objects setter and getter function and noticed that it's not in the docs http://sinonjs.org/releases/v2.0.0-pre.6/spies, but the api is burried in an issue #917.

Add api docs for

sinon.spy(object, "method", ["type"]);  //Where type is either "setter" or "getter"
@fatso83
Copy link
Contributor

fatso83 commented Mar 7, 2017

That is because we are reworking the API for that, and that it is currently undergoing a change. It is currently not possible with the release candidate. See #1297 for background info.

@fatso83 fatso83 self-assigned this Mar 7, 2017
@fatso83
Copy link
Contributor

fatso83 commented Mar 19, 2017

This is now on http://sinonjs.org/releases/v2.0.0/stubs/. See get and set methods.

@fatso83 fatso83 closed this as completed Mar 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants