Browse Source

Update test.mjs

content-update
Clément 4 years ago committed by GitHub
parent
commit
af4951f326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      js/tests/test.mjs

4
js/tests/test.mjs

@ -74,7 +74,9 @@ const main = async () => {
const tools = { eq, fail, wait, code, ctx }
for (const [i, t] of tests.entries()) {
try {
await t(tools)
if (!await t(tools)) {
throw Error('Test failed')
}
} catch (err) {
console.log(`test #${i} failed:\n${t.toString()}\n\nError:`)
fatal(stackFmt(err, url))

Loading…
Cancel
Save