Skip to content

Commit

Permalink
remove dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Murray committed Jun 7, 2022
1 parent ab2d4d6 commit aa6e409
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 48 deletions.
24 changes: 0 additions & 24 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75387,30 +75387,6 @@ const generateSummary = async (testResults) => {
`${testResults.totalDuration / 1000}s` || ''
]

// const generateSummaryRow = (run) => {
// const { spec, stats } = run
// const status =
// stats.failures === 0
// ? 'Passing :white_check_mark:'
// : 'Failing :red_circle:'

// return [
// spec.baseName || spec.name || '',
// status || '',
// stats.passes.toString() || '',
// stats.failures.toString() || '',
// stats.pending.toString() || '',
// stats.skipped.toString() || '',
// `${stats.duration / 1000}s` || ''
// ]
// }

// const summaryRows = []

// testResults.runs.map((run) => {
// summaryRows.push(generateSummaryRow(run))
// })

await core.summary
.addHeading('Cypress Results', 2)
.addTable([headers, summaryRows])
Expand Down
24 changes: 0 additions & 24 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -777,30 +777,6 @@ const generateSummary = async (testResults) => {
`${testResults.totalDuration / 1000}s` || ''
]

// const generateSummaryRow = (run) => {
// const { spec, stats } = run
// const status =
// stats.failures === 0
// ? 'Passing :white_check_mark:'
// : 'Failing :red_circle:'

// return [
// spec.baseName || spec.name || '',
// status || '',
// stats.passes.toString() || '',
// stats.failures.toString() || '',
// stats.pending.toString() || '',
// stats.skipped.toString() || '',
// `${stats.duration / 1000}s` || ''
// ]
// }

// const summaryRows = []

// testResults.runs.map((run) => {
// summaryRows.push(generateSummaryRow(run))
// })

await core.summary
.addHeading('Cypress Results', 2)
.addTable([headers, summaryRows])
Expand Down

0 comments on commit aa6e409

Please sign in to comment.