mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
12 lines
317 B
JavaScript
12 lines
317 B
JavaScript
|
"use strict";
|
||
|
|
||
|
var assert = require( "assert" ),
|
||
|
ensureGlobalNotCreated = require( "./lib/ensure_global_not_created" ),
|
||
|
jQueryFactory = require( "../../dist/jquery.js" );
|
||
|
|
||
|
assert.throws( function () {
|
||
|
jQueryFactory( {} );
|
||
|
}, /jQuery requires a window with a document/ );
|
||
|
|
||
|
ensureGlobalNotCreated( module.exports );
|