@@ -3,4 +3,7 @@
|
||||
// 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;
|
||||
})();
|
||||
|
||||
@@ -42,9 +42,9 @@
|
||||
: 'Expected runnable "' +
|
||||
fullName +
|
||||
'" to have failures ' +
|
||||
jasmine.basicPrettyPrinter_(expectedFailures) +
|
||||
jasmine.private.basicPrettyPrinter(expectedFailures) +
|
||||
' but it had ' +
|
||||
jasmine.basicPrettyPrinter_(foundFailures)
|
||||
jasmine.private.basicPrettyPrinter(foundFailures)
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
@@ -24,4 +24,7 @@
|
||||
global.jasmineUnderTest = jasmineUnderTestRequire.core(
|
||||
jasmineUnderTestRequire
|
||||
);
|
||||
|
||||
// Alias the private namespace so tests can be less verbose
|
||||
global.privateUnderTest = global.jasmineUnderTest.private;
|
||||
})();
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
beforeEach(function() {
|
||||
// env is stateful. Ensure that it, and its global error event listeners,
|
||||
// do not leak between tests.
|
||||
if (jasmineUnderTest.currentEnv_) {
|
||||
jasmineUnderTest.currentEnv_.cleanup_();
|
||||
jasmineUnderTest.currentEnv_ = null;
|
||||
if (privateUnderTest.currentEnv_) {
|
||||
privateUnderTest.currentEnv_.cleanup_();
|
||||
privateUnderTest.currentEnv_ = null;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user