aboutsummaryrefslogtreecommitdiffstats
path: root/test/node_smoke_tests/module/factory/document_passed.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/node_smoke_tests/module/factory/document_passed.js')
-rw-r--r--test/node_smoke_tests/module/factory/document_passed.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/node_smoke_tests/module/factory/document_passed.js b/test/node_smoke_tests/module/factory/document_passed.js
new file mode 100644
index 000000000..800b34a4e
--- /dev/null
+++ b/test/node_smoke_tests/module/factory/document_passed.js
@@ -0,0 +1,14 @@
+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 { window } = new JSDOM( "" );
+
+const jQueryModuleSpecifier = getJQueryModuleSpecifier();
+const { jQueryFactory } = await import( jQueryModuleSpecifier );
+const jQuery = jQueryFactory( window );
+
+ensureJQuery( jQuery );
+ensureGlobalNotCreated();