diff options
author | 2022-02-27 23:20:46 -0800 | |
---|---|---|
committer | 2022-02-27 23:20:46 -0800 | |
commit | 9ccb520e9e93cf85227eb37febec6acdf45bd9cf (patch) | |
tree | 62fc1645a27aa7509037a54b7a326c77af2c0055 | |
parent | fb3a262f4b6d4a1638416979f222596f6e1ada19 (diff) | |
download | bun-9ccb520e9e93cf85227eb37febec6acdf45bd9cf.tar.gz bun-9ccb520e9e93cf85227eb37febec6acdf45bd9cf.tar.zst bun-9ccb520e9e93cf85227eb37febec6acdf45bd9cf.zip |
Update transpiler.test.js
-rw-r--r-- | integration/bunjs-only-snippets/transpiler.test.js | 8 |
1 files changed, 8 insertions, 0 deletions
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", () => { |