Skip to content

Commit 3beab2b

Browse files
committed
Make doc tests pass with new jQuery
1 parent 766715c commit 3beab2b

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

docs/release-source/release/examples/spies-3-wrap-existing-method.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ const referee = require("@sinonjs/referee");
55
const assert = referee.assert;
66
const jsdom = require("jsdom");
77
const JSDOM = jsdom.JSDOM;
8-
const window = new JSDOM().window;
9-
const document = new JSDOM("").window;
10-
const jQuery = require("jquery")(window);
11-
global.document = document;
8+
const window = new JSDOM("").window;
9+
global.window = window;
10+
global.document = window.document;
11+
const jQuery = require("jquery");
1212

1313
describe("Wrap existing method", function () {
1414
beforeEach(function () {

docs/release-source/release/examples/spies-8-spy-call.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ const referee = require("@sinonjs/referee");
55
const assert = referee.assert;
66
const jsdom = require("jsdom");
77
const JSDOM = jsdom.JSDOM;
8-
const window = new JSDOM().window;
9-
const document = new JSDOM("").window;
10-
const jQuery = require("jquery")(window);
11-
global.document = document;
8+
const window = new JSDOM("").window;
9+
global.window = window;
10+
global.document = window.document;
11+
const jQuery = require("jquery");
1212

1313
describe("Return nth call", function () {
1414
beforeEach(function () {

0 commit comments

Comments
 (0)