test: disable color formating for test-internal-errors.js
PR-URL: https://github.com/nodejs/node/pull/24204 Fixes: https://github.com/nodejs/node/issues/24193 Refs: https://github.com/nodejs/node/pull/19723 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
53be304614
commit
18a4550f34
@ -10,6 +10,10 @@ const { internalBinding } = require('internal/test/binding');
|
|||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
const errors = require('internal/errors');
|
const errors = require('internal/errors');
|
||||||
|
|
||||||
|
// Turn off ANSI color formatting for this test file.
|
||||||
|
const { inspect } = require('util');
|
||||||
|
inspect.defaultOptions.colors = false;
|
||||||
|
|
||||||
errors.E('TEST_ERROR_1', 'Error for testing purposes: %s',
|
errors.E('TEST_ERROR_1', 'Error for testing purposes: %s',
|
||||||
Error, TypeError, RangeError);
|
Error, TypeError, RangeError);
|
||||||
errors.E('TEST_ERROR_2', (a, b) => `${a} ${b}`, Error);
|
errors.E('TEST_ERROR_2', (a, b) => `${a} ${b}`, Error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user