aboutsummaryrefslogtreecommitdiffstats
path: root/test/node_smoke_tests/document_missing.js
blob: 0f6a3f78b20c16f1ad5f07c4192368d4f7a55b8d (plain)
1
2
3
4
5
6
7
8
9
10
11
"use strict";

const assert = require( "assert" );
const ensureGlobalNotCreated = require( "./lib/ensure_global_not_created" );
const jQueryFactory = require( "../../dist/jquery.js" );

assert.throws( () => {
	jQueryFactory( {} );
}, /jQuery requires a window with a document/ );

ensureGlobalNotCreated( module.exports );