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