Skip to content

Commit 500c5ee

Browse files
committed
fixup! fixup!
1 parent 84cf466 commit 500c5ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-repl-preview-newlines.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ repl.start({
2020
let output = '';
2121
outputStream.write = (chunk) => output += chunk;
2222

23-
for (const testChar of '\n\v\r') {
24-
inputStream.emit('data', `${JSON.stringify(testChar)}()`);
23+
for (const char of ['\\n', '\\v', '\\r']) {
24+
inputStream.emit('data', `"${char}"()`);
2525
// Make sure the output is on a single line
26-
assert.strictEqual(output, `${JSON.stringify(testChar)}()\n\x1B[90mTypeError: "\x1B[39m\x1B[9G\x1B[1A`);
26+
assert.strictEqual(output, `"${char}"()\n\x1B[90mTypeError: "\x1B[39m\x1B[9G\x1B[1A`);
2727
inputStream.run(['']);
2828
output = '';
2929
}

0 commit comments

Comments
 (0)