Skip to content

Commit

Permalink
More html formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bibipkins committed Feb 7, 2024
1 parent 2a64b97 commit 70e6e92
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const formatTestSuit = (suit, showFailedTestsOnly, showTestOutput) => {
test.name,
...(showOutput ? [formatTestOutput(test, showTestOutput)] : [])
]));
return filteredTests.length ? formatDetails(summary, table) : `${summary}<br/><br/>`;
return formatDetails(summary, filteredTests.length ? table : '');
};
const formatTestOutput = (test, showTestOutput) => {
let output = showTestOutput ? test.output : '';
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/formatting/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const formatTestSuit = (suit: ITestSuit, showFailedTestsOnly: boolean, showTestO
])
);

return filteredTests.length ? formatDetails(summary, table) : `${summary}<br/><br/>`;
return formatDetails(summary, filteredTests.length ? table : '');
};

const formatTestOutput = (test: ITest, showTestOutput: boolean): string => {
Expand Down

0 comments on commit 70e6e92

Please sign in to comment.