Skip to content

Commit a2e2c91

Browse files
refackBridgeAR
authored andcommitted
test: disable color formating for test-internal-errors.js
PR-URL: #24204Fixes: #24193 Refs: #19723 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent 75ed7ce commit a2e2c91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎test/parallel/test-internal-errors.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const{internalBinding } = require('internal/test/binding');
1010
constassert=require('assert');
1111
consterrors=require('internal/errors');
1212

13+
// Turn off ANSI color formatting for this test file.
14+
const{ inspect }=require('util');
15+
inspect.defaultOptions.colors=false;
16+
1317
errors.E('TEST_ERROR_1','Error for testing purposes: %s',
1418
Error,TypeError,RangeError);
1519
errors.E('TEST_ERROR_2',(a,b)=>`${a}${b}`,Error);

0 commit comments

Comments
(0)