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
Request: Syntactic sugar for combining calledOnce and calledWithExactly #1247
Comments
calledOnce
and calledWithExactly
I'd like to second this request. Our team frequently uses both |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
It's super surprising for me that there is no such method. I actually thought that |
FYI: it was just merged :) |
Hi guys, great library. I'd like to request a feature regarding spies. If using them, we most likely want to make sure that the spy is called exactly as expected by using
calledWithExactly
. We also want to make sure this happens only a single time by usingcalledOnce
. Of course, this is possible right now. But I think it should be the default assertion (compared to partial matching) and therefore it would be great if boilerplate could be reduced by introducing a combined method likeonceCalledWithExactly
orcalledOnceWithExactly
. What do you think?Example
Using
sinon-chai
, this ...could be replaced by this:
The text was updated successfully, but these errors were encountered: