Skip to content
Permalink
Browse files
fix(jasmine): Corrected how the scenario titles are constructed
  • Loading branch information
jan-molak committed Sep 22, 2019
1 parent 13e480f commit 725246ef401cf2b78259e2fc46b1f34ad1dba554
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/jasmine/src/SerenityReporterForJasmine.ts
@@ -148,7 +148,7 @@ export class SerenityReporterForJasmine {
private currentScenarioNameFor(itBlockDescription: string): string {
const [ topSuite, ...rest ] = this.describes;

return rest.reduce((acc, current) => `${ current.description } ${ acc }`, itBlockDescription);
return rest.reverse().reduce((acc, current) => `${ current.description } ${ acc }`, itBlockDescription);
}

/**

0 comments on commit 725246e

Please sign in to comment.