From 500c5ee54bf7aaa25d9b0f53a60872339135651d Mon Sep 17 00:00:00 2001 From: RedYetiDev <38299977+RedYetiDev@users.noreply.github.com> Date: Mon, 23 Sep 2024 19:33:45 -0400 Subject: [PATCH] fixup! fixup! --- test/parallel/test-repl-preview-newlines.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-repl-preview-newlines.js b/test/parallel/test-repl-preview-newlines.js index a0055b46fe2c2c..02d294032acd13 100644 --- a/test/parallel/test-repl-preview-newlines.js +++ b/test/parallel/test-repl-preview-newlines.js @@ -20,10 +20,10 @@ repl.start({ let output = ''; outputStream.write = (chunk) => output += chunk; -for (const testChar of '\n\v\r') { - inputStream.emit('data', `${JSON.stringify(testChar)}()`); +for (const char of ['\\n', '\\v', '\\r']) { + inputStream.emit('data', `"${char}"()`); // Make sure the output is on a single line - assert.strictEqual(output, `${JSON.stringify(testChar)}()\n\x1B[90mTypeError: "\x1B[39m\x1B[9G\x1B[1A`); + assert.strictEqual(output, `"${char}"()\n\x1B[90mTypeError: "\x1B[39m\x1B[9G\x1B[1A`); inputStream.run(['']); output = ''; }