Browse Source

Add safety semicolon

DEV-3241-DEV-3242-corewar
Clément 2 years ago committed by GitHub
parent
commit
722e7b670a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      js/tests/test.mjs

2
js/tests/test.mjs

@ -296,7 +296,7 @@ const main = async () => {
const [inject, testCode] = parts.length < 2 ? ["", test] : parts
const combined = `${inject.trim()}\n${rawCode
.replace(inject.trim(), "")
.trim()}\n${testCode.trim()}\n`
.trim()}\n;${testCode.trim()}\n`
const url = `${tmpdir()}/${name}.mjs`
await writeFile(url, combined)

Loading…
Cancel
Save