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: nodejs#24204
Fixes: nodejs#24193
Refs: nodejs#19723
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
refack authored and kiyomizumia committed Nov 15, 2018
1 parent e035bdb commit 5807826
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 5807826

Please sign in to comment.