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
Describe the bug
If we use Sinon to spy on property accessors, these spies are not cleaned up (restored) when restoring the sandbox.
To Reproduce
Steps to reproduce the behavior:
constexecuteInsertSpy=sinon.spy(o,"executeInsert",["get"]);o.executeInserto.executeInsertassert.equals(executeInsertSpy,2);sinon.restore();executeInsertSpy.get.restore();// We should not be able to or be required to do this. BUG!
Expected behavior
All spies are cleaned up
Context (please complete the following information):
Describe the bug
If we use Sinon to spy on property accessors, these spies are not cleaned up (restored) when restoring the sandbox.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All spies are cleaned up
Context (please complete the following information):
Library version: 15.2.0
Environment: node v18.16.1
Additional context
Found when deep diving into #2523
Runnable example
https://runkit.com/fatso83/649df02251b50f0008d1e3a6
The text was updated successfully, but these errors were encountered: