Skip to content

Commit

Permalink
test: disable color formating for test-internal-errors.js
Browse files Browse the repository at this point in the history
PR-URL: #24204
Fixes: #24193
Refs: #19723
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information
refack authored and BridgeAR committed Nov 13, 2018
1 parent 75ed7ce commit a2e2c91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/parallel/test-internal-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const { internalBinding } = require('internal/test/binding');
const assert = require('assert');
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',
Error, TypeError, RangeError);
errors.E('TEST_ERROR_2', (a, b) => `${a} ${b}`, Error);
Expand Down

0 comments on commit a2e2c91

Please sign in to comment.