You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My understanding of issue #806 is that the behaviour of reset for stubs was changed to reset both the call history and the stub behaviour. It was decided that reset would reset both, resetHistory would reset just the call history, and resetBehaviour would reset just the stub behaviour.
It would be very convenient for me if these two functions, resetHistory and resetBehaviour, were made available through the sandbox API. That is, I would like them to be added to lib/sinon/collections.js alongside reset so that you could reset the history or behaviour of an entire sandbox at once.
Thoughts?
The text was updated successfully, but these errors were encountered:
My understanding of issue #806 is that the behaviour of
reset
for stubs was changed to reset both the call history and the stub behaviour. It was decided thatreset
would reset both,resetHistory
would reset just the call history, andresetBehaviour
would reset just the stub behaviour.It would be very convenient for me if these two functions,
resetHistory
andresetBehaviour
, were made available through the sandbox API. That is, I would like them to be added tolib/sinon/collections.js
alongsidereset
so that you could reset the history or behaviour of an entire sandbox at once.Thoughts?
The text was updated successfully, but these errors were encountered: