From 9ccb520e9e93cf85227eb37febec6acdf45bd9cf Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sun, 27 Feb 2022 23:20:46 -0800 Subject: Update transpiler.test.js --- integration/bunjs-only-snippets/transpiler.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'integration/bunjs-only-snippets/transpiler.test.js') diff --git a/integration/bunjs-only-snippets/transpiler.test.js b/integration/bunjs-only-snippets/transpiler.test.js index 34120e2d2..8dfb8f9d4 100644 --- a/integration/bunjs-only-snippets/transpiler.test.js +++ b/integration/bunjs-only-snippets/transpiler.test.js @@ -273,6 +273,13 @@ describe("Bun.Transpiler", () => { ); }); + it("import with unicode escape", () => { + expectPrinted_( + `import { name } from 'mod\\u1011';`, + `import {name} from "mod\\u1011"` + ); + }); + it("define", () => { expectPrinted_( `export default typeof user_undefined === 'undefined';`, @@ -757,6 +764,7 @@ describe("Bun.Transpiler", () => { 'export { x } from "mod"' ); expectPrinted_("export { x, type y as if }; let x", "export { x };\nlet x"); + expectPrinted_("export { type x };", ""); }); it("delete + optional chain", () => { -- cgit v1.2.3