diff options
Diffstat (limited to 'test/node_smoke_tests/module/regular/window_present_originally.js')
-rw-r--r-- | test/node_smoke_tests/module/regular/window_present_originally.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/node_smoke_tests/module/regular/window_present_originally.js b/test/node_smoke_tests/module/regular/window_present_originally.js new file mode 100644 index 000000000..ac5a416c8 --- /dev/null +++ b/test/node_smoke_tests/module/regular/window_present_originally.js @@ -0,0 +1,17 @@ +import { JSDOM } from "jsdom"; + +import { ensureJQuery } from "../lib/ensure_jquery.js"; +import { ensureGlobalNotCreated } from "../lib/ensure_global_not_created.js"; +import { getJQueryModuleSpecifier } from "../lib/jquery-module-specifier.js"; + +const jQueryModuleSpecifier = getJQueryModuleSpecifier(); + +const { window } = new JSDOM( "" ); + +// Set the window global. +globalThis.window = window; + +const { default: jQuery } = await import( jQueryModuleSpecifier ); + +ensureJQuery( jQuery ); +ensureGlobalNotCreated( window ); |