Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Aug 29, 2024
1 parent a7c1369 commit bb65cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ class TestRunner {

async * run () {
for (const test of this.tests) {
console.log(`${ansi.format(test.metadata?.file || '', ['magenta'])} ${test.name}`)
console.log(`${ansi.format(test.metadata.file || '', ['magenta'])} ${test.name}`)
try {
await test.run()
} catch (err) {
console.log(`${ansi.format(test.metadata?.file || '', ['magenta'])} ${test.name} - ${ansi.format('Failed', ['red'])}`)
console.log(`${ansi.format(test.metadata.file || '', ['magenta'])} ${test.name} - ${ansi.format('Failed', ['red'])}`)
/* Crash the process */
throw err
}
Expand Down

0 comments on commit bb65cb0

Please sign in to comment.