Skip to content

Commit

Permalink
refactor: tiny code cleanup in reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ChALkeR committed Sep 5, 2024
1 parent 8e1db7f commit 397874b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bin/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,8 @@ export default async function nodeTestReporterExodus(source) {
path.push(data.name)
break
case 'test:pass':
if (data.skip) {
print(`${color('⏭ SKIP ', dim)}${path.join(' > ')}${formatSuffix(data)}`)
} else {
print(`${color('✔ PASS ', 'green')}${path.join(' > ')}${formatSuffix(data)}`)
}

const label = data.skip ? color('⏭ SKIP ', dim) : color('✔ PASS ', 'green')
print(`${label}${path.join(' > ')}${formatSuffix(data)}`)
assert(path.pop() === data.name)
break
case 'test:fail':
Expand Down

0 comments on commit 397874b

Please sign in to comment.