Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
*/
var j$Require = require('jasmine-core'),
jasmineConsole = require('../../node_modules/jasmine-core/lib/console/console.js');
global.getJasmineRequireObj = function () {
return j$Require;
};
function extend(destination, source) {
for (var property in source) destination[property] = source[property];
return destination;
}
extend(j$Require, jasmineConsole);
global.j$ = j$Require.core(j$Require);
j$Require.console(j$Require, j$);
})();
const jasmineCore = require('jasmine-core');
const jasmine = jasmineCore.core(jasmineCore);
const env = jasmine.getEnv({ suppressLoadErrors: true });
jasmineCore.interface(jasmine, env);
global.jasmine = jasmine;
(() => {
/**
* Adaptation of jasmine `nodeDefineJasmineUnderTests.js` in order to test jasmine with jasmine.
* See https://github.com/jasmine/jasmine/blob/master/CONTRIBUTING.md#self-testing
*/
const jasmineUnderTestRequire = require("jasmine-core");
global.getJasmineRequireObj = () => {
return jasmineUnderTestRequire;
};
global.jasmineUnderTest = jasmineUnderTestRequire.core(jasmineUnderTestRequire);
})();