From f86f8c3331e79dd2a9926abd89bfd6a5a266a7b7 Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Sat, 20 Sep 2025 06:16:34 -0700 Subject: [PATCH] Remove useless reinitialize option from noGlobals() --- lib/jasmine-core.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; };