1 import assert from "node:assert/strict";
3 // Ensure the jQuery property on global/window/module "this"/etc. was not
4 // created in a CommonJS environment.
5 // `global` is always checked in addition to passed parameters.
6 export const ensureGlobalNotCreated = ( ...args ) => {
7 [ ...args, global ].forEach( function( object ) {
8 assert.strictEqual( object.jQuery, undefined,
9 "A jQuery global was created in a module environment." );