aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-07 21:41:07 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-11-07 21:43:38 -0800
commitbb8c803bdff17a7045daeb4c7b1f7b7b0df35e41 (patch)
tree77a1ad7d269265d8340706ac59352f2587951646 /test/bun.js
parent9d167deb1091ea067a43c910185b1667149151bd (diff)
downloadbun-bb8c803bdff17a7045daeb4c7b1f7b7b0df35e41.tar.gz
bun-bb8c803bdff17a7045daeb4c7b1f7b7b0df35e41.tar.zst
bun-bb8c803bdff17a7045daeb4c7b1f7b7b0df35e41.zip
Fix newline normalization
credit: @Validark
Diffstat (limited to '')
-rw-r--r--test/bun.js/transpiler.test.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/bun.js/transpiler.test.js b/test/bun.js/transpiler.test.js
index f8bbd9d44..d34b43330 100644
--- a/test/bun.js/transpiler.test.js
+++ b/test/bun.js/transpiler.test.js
@@ -65,6 +65,13 @@ describe("Bun.Transpiler", () => {
},
};
+ it("normalizes \\r\\n", () => {
+ ts.expectPrinted_(
+ "console.log(`\r\n\r\n\r\n`)",
+ "console.log(`\n\n\n`);\n"
+ );
+ });
+
describe("TypeScript", () => {
it("import Foo = Baz.Bar", () => {
ts.expectPrinted_(