Files
jasmine/spec/helpers/defineJasmineUnderTest.js
2025-09-27 13:21:09 -07:00

10 lines
396 B
JavaScript

(function() {
// By the time onload is called, jasmineRequire will be redefined to point
// to the Jasmine source files (and not jasmine.js). So re-require
window.jasmineUnderTest = jasmineRequire.core(jasmineRequire);
jasmineRequire.html(jasmineUnderTest);
// Alias the private namespace so tests can be less verbose
window.privateUnderTest = window.jasmineUnderTest.private;
})();