Skip to content

Commit

Permalink
- look to further modify formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Nov 3, 2024
1 parent 11d2c3e commit 58833a9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions __tests__/table.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('buildSummaryTables', () => {
],
[
{
"data": "checkName",
"data": "**checkName**",
"colspan": "2"
}
],
Expand Down Expand Up @@ -129,13 +129,13 @@ describe('buildSummaryTables', () => {
],
[
{
"data": "checkName",
"data": "**checkName**",
"colspan": "2"
}
],
[
{
"data": "ABC-0199: XMPP Ping",
"data": "*ABC-0199: XMPP Ping*",
"colspan": "2"
}
],
Expand All @@ -149,7 +149,7 @@ describe('buildSummaryTables', () => {
],
[
{
"data": "ABC-0045: Multi-User Chat",
"data": "*ABC-0045: Multi-User Chat*",
"colspan": "2"
}
],
Expand Down
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function buildSummaryTables(
detailsTable.push([{data: `No test annotations available`, colspan: '2'}])
} else {
if (detailedSummary) {
detailsTable.push([{data: `${testResult.checkName}`, colspan: '2'}])
detailsTable.push([{data: `**${testResult.checkName}**`, colspan: '2'}])
if (!groupSuite) {
for (const annotation of annotations) {
detailsTable.push([
Expand All @@ -83,7 +83,7 @@ export function buildSummaryTables(
if (flakySummary) {
const flakyAnnotations = annotations.filter(annotation => annotation.retries > 0)
if (flakyAnnotations.length > 0) {
flakyTable.push([{data: `${testResult.checkName}`, colspan: '2'}])
flakyTable.push([{data: `**${testResult.checkName}**`, colspan: '2'}])
for (const annotation of flakyAnnotations) {
flakyTable.push([`${annotation.title}`, `${annotation.retries}`])
}
Expand All @@ -103,7 +103,7 @@ function appendDetailsTable(
annotation => includePassed || annotation.annotation_level !== 'notice'
)
if (annotations.length > 0) {
detailsTable.push([{data: `${testResult.name}`, colspan: '2'}])
detailsTable.push([{data: `*${testResult.name}*`, colspan: '2'}])
for (const annotation of annotations) {
detailsTable.push([
`${annotation.title}`,
Expand Down

0 comments on commit 58833a9

Please sign in to comment.