From f465355cefe33573ad97b0e8ac584455646bad2b Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Tue, 25 Feb 2025 15:14:48 +0100 Subject: [PATCH] chore: fix results formatting for missing totalDuration (#1368) --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index ab8352565..10aab3e7f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -104946,7 +104946,7 @@ const generateSummary = async (testResults) => { `${testResults.totalFailed}`, `${testResults.totalPending}`, `${testResults.totalSkipped}`, - `${testResults.totalDuration / 1000}s` || '' + `${(testResults.totalDuration || 0) / 1000}s` ] const summaryTitle = core.getInput('summary-title') diff --git a/index.js b/index.js index ceaf31323..80a0c9252 100644 --- a/index.js +++ b/index.js @@ -899,7 +899,7 @@ const generateSummary = async (testResults) => { `${testResults.totalFailed}`, `${testResults.totalPending}`, `${testResults.totalSkipped}`, - `${testResults.totalDuration / 1000}s` || '' + `${(testResults.totalDuration || 0) / 1000}s` ] const summaryTitle = core.getInput('summary-title')