Skip to content
Permalink
Browse files
fix(jasmine): fixed a potential synchronisation issue
  • Loading branch information
jan-molak committed May 25, 2020
1 parent afb773a commit 3c1b6e6
Showing 1 changed file with 4 additions and 2 deletions.
@@ -87,15 +87,17 @@ export class SerenityReporterForJasmine {
});
}

const scenarioDetails = this.scenarioDetailsOf(result);

this.emit(new SceneFinishes(
this.scenarioDetailsOf(result),
scenarioDetails,
this.serenity.currentTime(),
));

return this.serenity.waitForNextCue()
.then(() => {
this.emit(new SceneFinished(
this.scenarioDetailsOf(result),
scenarioDetails,
this.outcomeFrom(result),
this.serenity.currentTime(),
));

0 comments on commit 3c1b6e6

Please sign in to comment.