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

Explain that mock.withArgs only uses arguments from last call #1432

Closed
mroderick opened this issue May 27, 2017 · 0 comments
Closed

Explain that mock.withArgs only uses arguments from last call #1432

mroderick opened this issue May 27, 2017 · 0 comments

Comments

@mroderick
Copy link
Member

The documentation should be updated to show that only the arguments from the last call are being used.

https://github.com/sinonjs/sinon/blob/master/lib/sinon/mock-expectation.js#L227-L236

This will help us close issues like #992

dcolucci pushed a commit to dcolucci/sinon that referenced this issue Jul 28, 2017
dcolucci pushed a commit to dcolucci/sinon that referenced this issue Jul 28, 2017
dcolucci pushed a commit to dcolucci/sinon that referenced this issue Jul 28, 2017
franck-romano pushed a commit to franck-romano/sinon that referenced this issue Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant