Skip to content

Commit b66fde0

Browse files
committed
fix(fancy): remove extra icons
1 parent 923e7fd commit b66fde0

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/reporters/fancy.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ const DEFAULTS = {
1212
const TYPE_ICONS = {
1313
info: figures('ℹ'),
1414
success: figures('✔'),
15-
error: figures('✖'),
16-
fatal: figures('✖'),
17-
warn: figures('⚠'),
18-
debug: figures('→'),
19-
trace: figures('→'),
20-
log: figures('›')
15+
debug: figures('›'),
16+
trace: figures('›')
2117
}
2218

2319
export default class FancyReporter extends BasicReporter {
@@ -55,7 +51,7 @@ export default class FancyReporter extends BasicReporter {
5551
formatLogObj (logObj, { width }) {
5652
const [ message, ...additional ] = this.formatArgs(logObj.args).split('\n')
5753

58-
const isBadge = logObj.badge || logObj.level < 2
54+
const isBadge = typeof logObj.badge !== 'undefined' ? Boolean(logObj.badge) : logObj.level < 2
5955

6056
const secondaryColor = chalkColor(this.options.secondaryColor)
6157

0 commit comments

Comments
 (0)