File tree Expand file tree Collapse file tree
docs/release-source/release/examples Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ const referee = require("@sinonjs/referee");
55const assert = referee . assert ;
66const jsdom = require ( "jsdom" ) ;
77const 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
1313describe ( "Wrap existing method" , function ( ) {
1414 beforeEach ( function ( ) {
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ const referee = require("@sinonjs/referee");
55const assert = referee . assert ;
66const jsdom = require ( "jsdom" ) ;
77const 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
1313describe ( "Return nth call" , function ( ) {
1414 beforeEach ( function ( ) {
You can’t perform that action at this time.
0 commit comments