From 153de9a26db3324c1f7aa262eb39b483cd8a4879 Mon Sep 17 00:00:00 2001 From: Valery Yatsynovich Date: Wed, 10 May 2023 12:24:52 +0300 Subject: [PATCH] Improve report readability: add space between number of tests and icon --- src/report/get-report.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/report/get-report.ts b/src/report/get-report.ts index 2cc1f166..7b58b9c3 100644 --- a/src/report/get-report.ts +++ b/src/report/get-report.ts @@ -141,9 +141,9 @@ function getTestRunsReport(testRuns: TestRunResult[], options: ReportOptions): s const name = tr.path const addr = options.baseUrl + makeRunSlug(runIndex).link const nameLink = link(name, addr) - const passed = tr.passed > 0 ? `${tr.passed}${Icon.success}` : '' - const failed = tr.failed > 0 ? `${tr.failed}${Icon.fail}` : '' - const skipped = tr.skipped > 0 ? `${tr.skipped}${Icon.skip}` : '' + const passed = tr.passed > 0 ? `${tr.passed} ${Icon.success}` : '' + const failed = tr.failed > 0 ? `${tr.failed} ${Icon.fail}` : '' + const skipped = tr.skipped > 0 ? `${tr.skipped} ${Icon.skip}` : '' return [nameLink, passed, failed, skipped, time] })