aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/transpiler.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/bun.js/transpiler.test.js')
-rw-r--r--test/bun.js/transpiler.test.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/bun.js/transpiler.test.js b/test/bun.js/transpiler.test.js
index a51b49235..413857dae 100644
--- a/test/bun.js/transpiler.test.js
+++ b/test/bun.js/transpiler.test.js
@@ -128,6 +128,17 @@ class Test extends Bar {
for (const [code, out] of fixtures) {
expect(ts.parsed(code, false, false).trim()).toBe(out);
+ expect(
+ ts
+ .parsed("var Test = " + code.trim(), false, false)
+ .trim()
+ .replaceAll("\n", "")
+ .replaceAll(" ", ""),
+ ).toBe(
+ ("var Test = " + out.trim() + ";\n")
+ .replaceAll("\n", "")
+ .replaceAll(" ", ""),
+ );
}
});