Skip to content

Commit

Permalink
Adds test for escaped newline issue
Browse files Browse the repository at this point in the history
  • Loading branch information
user committed Dec 6, 2024
1 parent c8cff27 commit 54d5fab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/methods/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54d5fab

Please # to comment.