Skip to content

Commit

Permalink
fixup! fixup!
Browse files Browse the repository at this point in the history
  • Loading branch information
avivkeller committed Sep 23, 2024
1 parent 84cf466 commit 500c5ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-repl-preview-newlines.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '';
}

0 comments on commit 500c5ee

Please sign in to comment.