From 722e7b670ab641e1265cf2803edf67b3c54e6e09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Mon, 18 Jul 2022 17:53:22 +0100 Subject: [PATCH] Add safety semicolon --- js/tests/test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/tests/test.mjs b/js/tests/test.mjs index 62c007526..6f5ede764 100644 --- a/js/tests/test.mjs +++ b/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)