8000 Tests: global -> globalThis · jquery/jquery@dce6641 · GitHub
[go: up one dir, main page]

Skip to content

Commit dce6641

Browse files
committed
Tests: global -> globalThis
1 parent 438fc8e commit dce6641

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/node_smoke_tests/commonjs/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"sourceType": "script"
99
},
1010
"env": {
11-
"es6": true
11+
"es2022": true
1212
}
1313
}

test/node_smoke_tests/commonjs/window_present_originally.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const jQueryModuleSpecifier = getJQueryModuleSpecifier();
1111
const { window } = new JSDOM( "" );
1212

1313
// Set the window global.
14-
global.window = window;
14+
globalThis.window = window;
1515

1616
const jQuery = require( jQueryModuleSpecifier );
1717

test/node_smoke_tests/module/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
"sourceType": "module"
99
},
1010
"env": {
11-
"es6": true
11+
"es2022": true
1212
}
1313
}

test/node_smoke_tests/module/window_present_originally.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const jQueryModuleSpecifier = getJQueryModuleSpecifier();
99
const { window } = new JSDOM( "" );
1010

1111
// Set the window global.
12-
global.window = window;
12+
globalThis.window = window;
1313

1414
const { default: jQuery } = await import( jQueryModuleSpecifier );
1515

0 commit comments

Comments
 (0)
0