Browse Source

Update test.mjs

pull/581/head
Clément 4 years ago committed by GitHub
parent
commit
972460601a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      js/tests/test.mjs

3
js/tests/test.mjs

@ -45,6 +45,9 @@ const read = (filename, description) =>
const { join } = []
const { split } = ''
const stackFmt = (err, url) => {
if (!(err instanceof Error)) {
throw Error(`Unexpected type thrown: ${typeof err}. usage: throw Error('my message'))`)
}
String.prototype.split = split
Array.prototype.join = join
return err.stack.split(url).join(`${name}.js`)

Loading…
Cancel
Save