Skip to content

Commit f465355

Browse files
authored
chore: fix results formatting for missing totalDuration (#1368)
1 parent 01868f1 commit f465355

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104946,7 +104946,7 @@ const generateSummary = async (testResults) => {
104946104946
`${testResults.totalFailed}`,
104947104947
`${testResults.totalPending}`,
104948104948
`${testResults.totalSkipped}`,
104949-
`${testResults.totalDuration / 1000}s` || ''
104949+
`${(testResults.totalDuration || 0) / 1000}s`
104950104950
]
104951104951

104952104952
const summaryTitle = core.getInput('summary-title')

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ const generateSummary = async (testResults) => {
899899
`${testResults.totalFailed}`,
900900
`${testResults.totalPending}`,
901901
`${testResults.totalSkipped}`,
902-
`${testResults.totalDuration / 1000}s` || ''
902+
`${(testResults.totalDuration || 0) / 1000}s`
903903
]
904904

905905
const summaryTitle = core.getInput('summary-title')

0 commit comments

Comments
 (0)