Skip to content

Commit

Permalink
make lint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Feb 28, 2024
1 parent 2c28d98 commit a83e466
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion test-engine/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (testId !== '') {

await runTests(testsToRun, fetch, false, baseUrl).catch(err => {
console.error(err)
process.exit(1);
process.exit(1)
})

const results = getResults()
Expand Down
2 changes: 0 additions & 2 deletions test-engine/client/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,10 @@ export async function makeTest (test) {
.then(() => { // pass
if (test.id in testResults) throw new Error(`Duplicate test ${test.id}`)
testResults[test.id] = true
return
})
.catch(err => { // fail
if (test.id in testResults) throw new Error(`Duplicate test ${test.id}`)
testResults[test.id] = [(err.name || 'unknown'), err.message]
return
})
}

Expand Down

0 comments on commit a83e466

Please sign in to comment.