rename afterAllException to afterAllError
It should also handle expectation failures
This commit is contained in:
@@ -84,7 +84,7 @@ getJasmineRequireObj().ConsoleReporter = function() {
|
||||
}
|
||||
};
|
||||
|
||||
this.afterAllException = function(error) {
|
||||
this.afterAllError = function(error) {
|
||||
exceptionList.push(error);
|
||||
};
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ getJasmineRequireObj().Env = function(j$) {
|
||||
'suiteDone',
|
||||
'specStarted',
|
||||
'specDone',
|
||||
'afterAllException'
|
||||
'afterAllError'
|
||||
]);
|
||||
|
||||
this.specFilter = function() {
|
||||
|
||||
@@ -51,7 +51,7 @@ getJasmineRequireObj().QueueRunner = function(j$) {
|
||||
queueableFn.fn.call(self.userContext);
|
||||
} catch (e) {
|
||||
if(queueableFn.isAfterAll){
|
||||
runner.reporter.afterAllException(e);
|
||||
runner.reporter.afterAllError(e);
|
||||
}
|
||||
handleException(e);
|
||||
}
|
||||
@@ -78,7 +78,7 @@ getJasmineRequireObj().QueueRunner = function(j$) {
|
||||
queueableFn.fn.call(self.userContext, next);
|
||||
} catch (e) {
|
||||
if(queueableFn.isAfterAll) {
|
||||
runner.reporter.afterAllException(e);
|
||||
runner.reporter.afterAllError(e);
|
||||
}
|
||||
handleException(e);
|
||||
next();
|
||||
|
||||
@@ -65,7 +65,7 @@ jasmineRequire.HtmlReporter = function(j$) {
|
||||
currentParent.addChild(result, 'spec');
|
||||
};
|
||||
|
||||
this.afterAllException = function(error) {
|
||||
this.afterAllError = function(error) {
|
||||
exceptionList.push(error);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user