Skip to content

Commit

Permalink
Merge pull request #46 from ctrf-io/fix/failed-folded-styling
Browse files Browse the repository at this point in the history
chore: remove empty space
  • Loading branch information
Ma11hewThomas authored Nov 2, 2024
2 parents 1fe9fe8 + 9b6ba05 commit 31a5f41
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/views/failed-folded.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ export function generateFailedFoldedTable(tests: CtrfTest[], useSuiteName: boole
<tbody>`
failedTests.forEach((test) => {
const testName = getTestName(test, useSuiteName)
const messageHtml = convert.toHtml(test.message || 'No message available')
const traceHtml = convert.toHtml(test.trace || 'No trace available')
const messageHtml = convert.toHtml((test.message || 'No message available').replace(/\n{2,}/g, '\n'))
const traceHtml = convert.toHtml((test.trace || 'No trace available').replace(/\n{2,}/g, '\n'))

tableHtml += `
<tr>
<td>
<details>
<summary>❌ ${testName}</summary>
<p><strong>Message:</strong></p>
<pre><code>${messageHtml}</code></pre>
<p><strong>Trace:</strong></p>
<pre><code>${traceHtml}</code></pre>
Expand Down

0 comments on commit 31a5f41

Please sign in to comment.