diff --git a/lib/jasmine-core.js b/lib/jasmine-core.js index 30b95b2e..868874bc 100644 --- a/lib/jasmine-core.js +++ b/lib/jasmine-core.js @@ -43,14 +43,13 @@ module.exports.boot = function(reinitialize) { /** * Boots a copy of Jasmine and returns an object containing the properties * that would normally be added to the global object. If noGlobals is called - * multiple times, the same object is returned every time unless true is passed. + * multiple times, the same object is returned every time. * - * @param {boolean} [reinitialize=false] Whether to create a new copy of Jasmine if one already exists * @example * const {describe, beforeEach, it, expect, jasmine} = require('jasmine-core').noGlobals(); */ -module.exports.noGlobals = function(reinitialize) { - const {jasmineInterface} = bootWithoutGlobals(reinitialize); +module.exports.noGlobals = function() { + const {jasmineInterface} = bootWithoutGlobals(false); return jasmineInterface; };