mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
9c8a3ecdc4
Utilize the assert module, avoid inline JSHint comments.
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 );
|