Skip to content

Commit

Permalink
remove destructuring.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Murray committed Jun 7, 2022
1 parent eb7ed62 commit fd767db
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
15 changes: 10 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75373,13 +75373,18 @@ const generateSummary = async (testResults) => {
{ data: 'Duration :clock8:', header: true }
]

const status =
testResults.totalFailed === 0
? 'Passing :white_check_mark:'
: 'Failing :red_circle:'

const summaryRows = [
[],
testResults.totalPasses,
testResults.totalFailures,
status,
testResults.totalPassed,
testResults.totalFailed,
testResults.totalPending,
testResults.totalSkipped,
[]
`${testResults.totalDuration / 1000}s` || ''
]

// const generateSummaryRow = (run) => {
Expand Down Expand Up @@ -75408,7 +75413,7 @@ const generateSummary = async (testResults) => {

await core.summary
.addHeading('Cypress Results', 2)
.addTable([headers, ...summaryRows])
.addTable([headers, summaryRows])
.addLink(
testResults.runUrl ? 'View Run in Dashboard' : '',
testResults.runUrl || ''
Expand Down
15 changes: 10 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -763,13 +763,18 @@ const generateSummary = async (testResults) => {
{ data: 'Duration :clock8:', header: true }
]

const status =
testResults.totalFailed === 0
? 'Passing :white_check_mark:'
: 'Failing :red_circle:'

const summaryRows = [
[],
testResults.totalPasses,
testResults.totalFailures,
status,
testResults.totalPassed,
testResults.totalFailed,
testResults.totalPending,
testResults.totalSkipped,
[]
`${testResults.totalDuration / 1000}s` || ''
]

// const generateSummaryRow = (run) => {
Expand Down Expand Up @@ -798,7 +803,7 @@ const generateSummary = async (testResults) => {

await core.summary
.addHeading('Cypress Results', 2)
.addTable([headers, ...summaryRows])
.addTable([headers, summaryRows])
.addLink(
testResults.runUrl ? 'View Run in Dashboard' : '',
testResults.runUrl || ''
Expand Down

0 comments on commit fd767db

Please sign in to comment.