Skip to content

Commit

Permalink
Fix displayName usage in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
D4N14L committed Sep 9, 2021
1 parent 6751a86 commit e189f2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/buildJsonResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ module.exports = function (report, appDirectory, options) {
const filepath = path.relative(appDirectory, suite.testFilePath);
const filename = path.basename(filepath);
const suiteTitle = suite.testResults[0].ancestorTitles[0];
const displayName = suite.displayName;
const displayName = typeof suite.displayName === 'object'
? suite.displayName.name
: suite.displayName;

// Build replacement map
let suiteNameVariables = {};
Expand Down

0 comments on commit e189f2d

Please sign in to comment.