diff --git a/lib/reporters/base.js b/lib/reporters/base.js index 1f97e319dd..8782f64914 100644 --- a/lib/reporters/base.js +++ b/lib/reporters/base.js @@ -10,6 +10,7 @@ var diff = require('diff'); var milliseconds = require('ms'); var utils = require('../utils'); var supportsColor = require('supports-color'); +var symbols = require('log-symbols'); var constants = require('../runner').constants; var EVENT_TEST_PASS = constants.EVENT_TEST_PASS; var EVENT_TEST_FAIL = constants.EVENT_TEST_FAIL; @@ -88,20 +89,13 @@ exports.colors = { */ exports.symbols = { - ok: '✓', - err: '✖', - dot: '․', + ok: symbols.success, + err: symbols.err, + dot: '.', comma: ',', bang: '!' }; -// With node.js on Windows: use symbols available in terminal default fonts -if (process.platform === 'win32') { - exports.symbols.ok = '\u221A'; - exports.symbols.err = '\u00D7'; - exports.symbols.dot = '.'; -} - /** * Color `str` with the given `type`, * allowing colors to be disabled,