mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
10fdad742a
Fixes gh-2056
12 lines
316 B
JavaScript
12 lines
316 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 );
|