Skip to content

Commit 2f05b2f

Browse files
authored
test: update tests to resolve colors
1 parent baba49f commit 2f05b2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-repl-uncaught-exception.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ const tests = [
4040
{
4141
useColors: true,
4242
command: 'x',
43-
expected: 'Uncaught ReferenceError: x is not defined\n'
43+
expected: '\x1B[31mUncaught ReferenceError: x is not defined\x1B[39m\n'
4444
},
4545
{
4646
useColors: true,
4747
command: 'throw { foo: "test" }',
48-
expected: "Uncaught { foo: \x1B[32m'test'\x1B[39m }\n"
48+
expected: "\x1B[31mUncaught { foo: \x1B[32m'test'\x1B[39m }\x1B[39m\n"
4949
},
5050
{
5151
command: 'process.on("uncaughtException", () => console.log("Foobar"));\n',

0 commit comments

Comments
 (0)