diff --git a/docs/release-source/release/examples/spies-2-wrap-object-methods.test.js b/docs/release-source/release/examples/spies-2-wrap-object-methods.test.js index 2246ad7af..8a57c90a3 100644 --- a/docs/release-source/release/examples/spies-2-wrap-object-methods.test.js +++ b/docs/release-source/release/examples/spies-2-wrap-object-methods.test.js @@ -16,14 +16,12 @@ const myExternalLibrary = { }; describe("Wrap all object methods", function () { - const sandbox = sinon.createSandbox(); - beforeEach(function () { - sandbox.spy(myExternalLibrary); + sinon.spy(myExternalLibrary); }); afterEach(function () { - sandbox.restore(); + sinon.restore(); }); it("should inspect the external lib's usage of its internal methods", function () { diff --git a/docs/release-source/release/examples/spies-3-wrap-existing-method.test.js b/docs/release-source/release/examples/spies-3-wrap-existing-method.test.js index 2b75628d8..4a5e8eece 100644 --- a/docs/release-source/release/examples/spies-3-wrap-existing-method.test.js +++ b/docs/release-source/release/examples/spies-3-wrap-existing-method.test.js @@ -11,14 +11,12 @@ const jQuery = require("jquery")(window); global.document = document; describe("Wrap existing method", function () { - const sandbox = sinon.createSandbox(); - beforeEach(function () { - sandbox.spy(jQuery, "ajax"); + sinon.spy(jQuery, "ajax"); }); afterEach(function () { - sandbox.restore(); + sinon.restore(); }); it("should inspect jQuery.getJSON's usage of jQuery.ajax", function () { diff --git a/docs/release-source/release/examples/spies-8-spy-call.test.js b/docs/release-source/release/examples/spies-8-spy-call.test.js index 568b3b802..20fbe7e2e 100644 --- a/docs/release-source/release/examples/spies-8-spy-call.test.js +++ b/docs/release-source/release/examples/spies-8-spy-call.test.js @@ -11,14 +11,12 @@ const jQuery = require("jquery")(window); global.document = document; describe("Return nth call", function () { - const sandbox = sinon.createSandbox(); - beforeEach(function () { - sandbox.spy(jQuery, "ajax"); + sinon.spy(jQuery, "ajax"); }); afterEach(function () { - sandbox.restore(); + sinon.restore(); }); it("should inspect jQuery.getJSON's usage of jQuery.ajax", function () {