aboutsummaryrefslogtreecommitdiffstats
path: root/test/node_smoke_tests/commonjs/lib/ensure_jquery.cjs
blob: be23e990060d7e5851153850a07d55ed9b8186aa (plain)
1
2
3
4
5
6
7
8
9
10
11
"use strict";

const assert = require( "node:assert" );

// Check if the object we got is the jQuery object by invoking a basic API.
const ensureJQuery = ( jQuery ) => {
	assert( /^jQuery/.test( jQuery.expando ),
		"jQuery.expando was not detected, the jQuery bootstrap process has failed" );
};

module.exports = { ensureJQuery };