Remove useless reinitialize option from noGlobals()

This commit is contained in:
Steve Gravrock
2025-09-20 06:16:34 -07:00
parent 70fbdc98b5
commit f86f8c3331

View File

@@ -43,14 +43,13 @@ module.exports.boot = function(reinitialize) {
/** /**
* Boots a copy of Jasmine and returns an object containing the properties * 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 * 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 * @example
* const {describe, beforeEach, it, expect, jasmine} = require('jasmine-core').noGlobals(); * const {describe, beforeEach, it, expect, jasmine} = require('jasmine-core').noGlobals();
*/ */
module.exports.noGlobals = function(reinitialize) { module.exports.noGlobals = function() {
const {jasmineInterface} = bootWithoutGlobals(reinitialize); const {jasmineInterface} = bootWithoutGlobals(false);
return jasmineInterface; return jasmineInterface;
}; };