Skip to content

Commit fd767db

Browse files
author
Adam Murray
committed
remove destructuring.
1 parent eb7ed62 commit fd767db

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

dist/index.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75373,13 +75373,18 @@ const generateSummary = async (testResults) => {
7537375373
{ data: 'Duration :clock8:', header: true }
7537475374
]
7537575375

75376+
const status =
75377+
testResults.totalFailed === 0
75378+
? 'Passing :white_check_mark:'
75379+
: 'Failing :red_circle:'
75380+
7537675381
const summaryRows = [
75377-
[],
75378-
testResults.totalPasses,
75379-
testResults.totalFailures,
75382+
status,
75383+
testResults.totalPassed,
75384+
testResults.totalFailed,
7538075385
testResults.totalPending,
7538175386
testResults.totalSkipped,
75382-
[]
75387+
`${testResults.totalDuration / 1000}s` || ''
7538375388
]
7538475389

7538575390
// const generateSummaryRow = (run) => {
@@ -75408,7 +75413,7 @@ const generateSummary = async (testResults) => {
7540875413

7540975414
await core.summary
7541075415
.addHeading('Cypress Results', 2)
75411-
.addTable([headers, ...summaryRows])
75416+
.addTable([headers, summaryRows])
7541275417
.addLink(
7541375418
testResults.runUrl ? 'View Run in Dashboard' : '',
7541475419
testResults.runUrl || ''

index.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -763,13 +763,18 @@ const generateSummary = async (testResults) => {
763763
{ data: 'Duration :clock8:', header: true }
764764
]
765765

766+
const status =
767+
testResults.totalFailed === 0
768+
? 'Passing :white_check_mark:'
769+
: 'Failing :red_circle:'
770+
766771
const summaryRows = [
767-
[],
768-
testResults.totalPasses,
769-
testResults.totalFailures,
772+
status,
773+
testResults.totalPassed,
774+
testResults.totalFailed,
770775
testResults.totalPending,
771776
testResults.totalSkipped,
772-
[]
777+
`${testResults.totalDuration / 1000}s` || ''
773778
]
774779

775780
// const generateSummaryRow = (run) => {
@@ -798,7 +803,7 @@ const generateSummary = async (testResults) => {
798803

799804
await core.summary
800805
.addHeading('Cypress Results', 2)
801-
.addTable([headers, ...summaryRows])
806+
.addTable([headers, summaryRows])
802807
.addLink(
803808
testResults.runUrl ? 'View Run in Dashboard' : '',
804809
testResults.runUrl || ''

0 commit comments

Comments
 (0)