mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 06:17:10 +01:00
chore: run linter to fix code style issues
This commit is contained in:
parent
7148297f02
commit
5fb0582760
2 changed files with 4 additions and 5 deletions
3
dist/index.js
generated
vendored
3
dist/index.js
generated
vendored
|
|
@ -2036,8 +2036,7 @@ function getTestRunsReport(testRuns, options) {
|
||||||
const sections = [];
|
const sections = [];
|
||||||
const totalFailed = testRuns.reduce((sum, tr) => sum + tr.failed, 0);
|
const totalFailed = testRuns.reduce((sum, tr) => sum + tr.failed, 0);
|
||||||
// Determine if report should be collapsed based on collapsed option
|
// Determine if report should be collapsed based on collapsed option
|
||||||
const shouldCollapse = options.collapsed === 'always' ||
|
const shouldCollapse = options.collapsed === 'always' || (options.collapsed === 'auto' && totalFailed === 0);
|
||||||
(options.collapsed === 'auto' && totalFailed === 0);
|
|
||||||
if (shouldCollapse) {
|
if (shouldCollapse) {
|
||||||
sections.push(`<details><summary>Expand for details</summary>`);
|
sections.push(`<details><summary>Expand for details</summary>`);
|
||||||
sections.push(` `);
|
sections.push(` `);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue