Skip to content

Commit

Permalink
Don't monkey-patch the now removed sinon.sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Dec 26, 2019
1 parent 9ae517a commit 20f6f22
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/monkeyPatchSinonStackFrames.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,6 @@
replace(name, sinon);
});

if (sinon.sandbox.create) {
var originalSandboxCreate = sinon.sandbox.create;
sinon.sandbox.create = function() {
var sandbox = originalSandboxCreate.apply(this, arguments);
replace('spy', sandbox);
replace('stub', sandbox);
return sandbox;
};
}

if (sinon.createSandbox) {
var originalCreateSandbox = sinon.createSandbox;
sinon.createSandbox = function() {
Expand Down

0 comments on commit 20f6f22

Please sign in to comment.