From 54d5fabefdc37026e68a9221b51ff0f8a14849d6 Mon Sep 17 00:00:00 2001 From: user Date: Thu, 5 Dec 2024 23:20:06 -0800 Subject: [PATCH] Adds test for escaped newline issue --- test/methods/template.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/methods/template.js b/test/methods/template.js index c1efde9ca8..2e5f459154 100644 --- a/test/methods/template.js +++ b/test/methods/template.js @@ -22,6 +22,8 @@ test('$ can use newlines and tab indentations', testScriptStdout, () => $`echo.j bar`, 'foo\nbar'); test('$ can use newlines and space indentations', testScriptStdout, () => $`echo.js foo bar`, 'foo\nbar'); +test('$ can use escaped newlines and space indentations', testScriptStdout, () => $`echo.js foo\ + bar`, 'foo\nbar'); test('$ can use Windows newlines and tab indentations', testScriptStdout, () => escapedCall('echo.js foo\r\n\tbar'), 'foo\nbar'); test('$ can use Windows newlines and space indentations', testScriptStdout, () => escapedCall('echo.js foo\r\n bar'), 'foo\nbar'); test('$ does not ignore comments in expressions', testScriptStdout, () => $`echo.js foo