From bb8c803bdff17a7045daeb4c7b1f7b7b0df35e41 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Mon, 7 Nov 2022 21:41:07 -0800 Subject: Fix newline normalization credit: @Validark --- test/bun.js/transpiler.test.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/bun.js/transpiler.test.js') 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_( -- cgit v1.2.3