Move afterAll reporting into Suite since that's where they're being tracked
This commit is contained in:
@@ -19,8 +19,6 @@ getJasmineRequireObj().QueueRunner = function(j$) {
|
||||
this.userContext = attrs.userContext || {};
|
||||
this.timer = attrs.timeout || {setTimeout: setTimeout, clearTimeout: clearTimeout};
|
||||
this.reportException = attrs.reportException || function() {};
|
||||
this.reportExpectationFailure = attrs.reportExpectationFailure || function() {};
|
||||
this.afterAllExpectationFailures = attrs.afterAllExpectationFailures || [];
|
||||
}
|
||||
|
||||
QueueRunner.prototype.execute = function() {
|
||||
@@ -39,7 +37,6 @@ getJasmineRequireObj().QueueRunner = function(j$) {
|
||||
return attemptAsync(queueableFn);
|
||||
} else {
|
||||
attemptSync(queueableFn);
|
||||
flushAfterAllExpectationFailures();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +60,6 @@ getJasmineRequireObj().QueueRunner = function(j$) {
|
||||
},
|
||||
next = once(function () {
|
||||
clearTimeout(timeoutId);
|
||||
flushAfterAllExpectationFailures();
|
||||
self.run(queueableFns, iterativeIndex + 1);
|
||||
}),
|
||||
timeoutId;
|
||||
@@ -97,12 +93,6 @@ getJasmineRequireObj().QueueRunner = function(j$) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
function flushAfterAllExpectationFailures() {
|
||||
while (self.afterAllExpectationFailures.length) {
|
||||
self.reportExpectationFailure(self.afterAllExpectationFailures.pop());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return QueueRunner;
|
||||
|
||||
Reference in New Issue
Block a user