blob: b902d2913371db17ba88c6029a167ed5c6d246cc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import assert from "node:assert/strict";
import { ensureGlobalNotCreated } from "../lib/ensure_global_not_created.js";
import { getJQueryModuleSpecifier } from "../lib/jquery-module-specifier.js";
const jQueryModuleSpecifier = getJQueryModuleSpecifier();
const { jQueryFactory } = await import( jQueryModuleSpecifier );
assert.throws( () => {
jQueryFactory( {} );
}, /jQuery requires a window with a document/ );
ensureGlobalNotCreated();
|