Remove useless reinitialize option from noGlobals()
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user