add the ability to clear stubs configurations / mock expectations the same way reset() clears spy statistics.
+1
Judging by issue #806, this feature has already been implemented for stubs, just not for mocks. Is that correct?
Judging by issue #806, this feature has already been implemented for stubs, just not for mocks. Is that correct?
That is correct. It has been implemented for stubs, not for mocks.
Edit: it has been implemented for stubs in sinon@2
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.
srsly 馃憥
@amir-arad would you like to work on this issue?
no, I've managed to work around this feature for a few years now.
still, there's a difference between something that doesn't get done, and something that is a "wontfix" or gets closed.
as spy.reset() has been removed in version 5 this issue may be no longer relevant, or at least requires update.
Most helpful comment
https://github.com/sinonjs/sinon/pull/1658