2015-04-26 17:33:05 +00:00
|
|
|
"use strict";
|
|
|
|
|
2023-07-10 18:45:30 +00:00
|
|
|
const assert = require( "node:assert" );
|
|
|
|
|
|
|
|
const { ensureGlobalNotCreated } = require( "./lib/ensure_global_not_created" );
|
|
|
|
const { getJQueryModuleSpecifier } = require( "./lib/jquery-module-specifier" );
|
|
|
|
|
|
|
|
const jQueryModuleSpecifier = getJQueryModuleSpecifier();
|
|
|
|
const jQueryFactory = require( jQueryModuleSpecifier );
|
2015-04-26 17:33:05 +00:00
|
|
|
|
2019-03-04 17:30:51 +00:00
|
|
|
assert.throws( () => {
|
2015-04-26 17:33:05 +00:00
|
|
|
jQueryFactory( {} );
|
2015-06-01 21:25:38 +00:00
|
|
|
}, /jQuery requires a window with a document/ );
|
|
|
|
|
|
|
|
ensureGlobalNotCreated( module.exports );
|