Converted ReportDispatcher to promises

This commit is contained in:
Steve Gravrock
2022-06-14 19:36:11 -07:00
parent 6c56ebc984
commit 21f25972bb
5 changed files with 172 additions and 200 deletions

View File

@@ -701,12 +701,12 @@ getJasmineRequireObj().Env = function(j$) {
function specStarted(spec, suite, next) {
runner.currentSpec = spec;
runableResources.initForRunable(spec.id, suite.id);
reporter.specStarted(spec.result, next);
reporter.specStarted(spec.result).then(next);
}
function reportSpecDone(spec, result, next) {
spec.reportedDone = true;
reporter.specDone(result, next);
reporter.specDone(result).then(next);
}
this.it = function(description, fn, timeout) {