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
sinon.resetHistory()
does not reset history
#2016
Comments
I updated the issue with the content of the zip file and also added it as a runnable RunKit demo, asserting that it works. |
I would like to help on bug fixing |
@rpgeeganage Please do! Here is our getting starting guide |
I realize this comment is more of a feature request, but it would be nice if the "stub instance" object had its own |
@mcow Have you tried? 😄 Stubs have had those features since version 2 of Sinon. The sandbox additions are much more recent. |
@fatso83 , |
@fatso83 Stub methods have that feature. "Stub instance" objects, the result of a |
@fatso83, |
@mcow Aha, that explains things. I didn't notice the instance bit :) Hopefully @rpgeeganage deep dive comes up with something fruitful. |
@fatso83, should this issue be closed since the changes for it are merged into master? |
TG for astute observers 😄 |
Per the docs:
To Reproduce
RunKit demo
Actual results
Second test fails:
""called on module: should clear "called" status on all stubs: ❌. [assert.isFalse] Expected true to be false""
Expected results
All tests pass
The text was updated successfully, but these errors were encountered: