Add support on Env to provide fallback report

This commit is contained in:
Mauricio Borges Silva
2015-12-30 15:11:08 -02:00
committed by Mauricio Borges Silva
parent 5e3582d8e7
commit 6489b0f400
2 changed files with 28 additions and 0 deletions

View File

@@ -263,6 +263,10 @@ getJasmineRequireObj().Env = function(j$) {
reporter.addReporter(reporterToAdd);
};
this.provideFallbackReporter = function(reporterToAdd) {
reporter.provideFallbackReporter(reporterToAdd);
};
var spyRegistry = new j$.SpyRegistry({currentSpies: function() {
if(!currentRunnable()) {
throw new Error('Spies must be created in a before function or a spec');