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
  • Loading branch information
refack committed Nov 6, 2018
1 parent 5e6193f commit 6ace7ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/parallel/test-internal-errors.js
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 6ace7ec

Please sign in to comment.