2015-04-26 17:33:05 +00:00
|
|
|
"use strict";
|
|
|
|
|
2019-03-04 17:30:51 +00:00
|
|
|
const { JSDOM } = require( "jsdom" );
|
2015-06-01 21:25:38 +00:00
|
|
|
|
2023-07-10 18:45:30 +00:00
|
|
|
const { ensureJQuery } = require( "./lib/ensure_jquery" );
|
|
|
|
const { ensureGlobalNotCreated } = require( "./lib/ensure_global_not_created" );
|
|
|
|
const { getJQueryModuleSpecifier } = require( "./lib/jquery-module-specifier" );
|
|
|
|
|
2019-03-04 17:30:51 +00:00
|
|
|
const { window } = new JSDOM( "" );
|
2015-04-26 17:33:05 +00:00
|
|
|
|
2023-07-10 18:45:30 +00:00
|
|
|
const jQueryModuleSpecifier = getJQueryModuleSpecifier();
|
|
|
|
const jQueryFactory = require( jQueryModuleSpecifier );
|
|
|
|
const jQuery = jQueryFactory( window );
|
2015-04-26 17:33:05 +00:00
|
|
|
|
2019-03-04 17:30:51 +00:00
|
|
|
ensureJQuery( jQuery );
|
|
|
|
ensureGlobalNotCreated( module.exports );
|