Skip to content

Commit 2de6fc1

Browse files
committed
chore: fix results formatting for missing totalDuration
1 parent 8c73325 commit 2de6fc1

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
@@ -104947,7 +104947,7 @@ const generateSummary = async (testResults) => {
104947104947
`${testResults.totalFailed}`,
104948104948
`${testResults.totalPending}`,
104949104949
`${testResults.totalSkipped}`,
104950-
`${testResults.totalDuration / 1000}s` || ''
104950+
`${(testResults.totalDuration || 0) / 1000}s`
104951104951
]
104952104952

104953104953
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)