Skip to content

Commit

Permalink
fix(fancy): remove extra icons
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 2, 2018
1 parent 923e7fd commit b66fde0
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/reporters/fancy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ const DEFAULTS = {
const TYPE_ICONS = {
info: figures('ℹ'),
success: figures('✔'),
error: figures('✖'),
fatal: figures('✖'),
warn: figures('⚠'),
debug: figures('→'),
trace: figures('→'),
log: figures('›')
debug: figures('›'),
trace: figures('›')
}

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

const isBadge = logObj.badge || logObj.level < 2
const isBadge = typeof logObj.badge !== 'undefined' ? Boolean(logObj.badge) : logObj.level < 2

const secondaryColor = chalkColor(this.options.secondaryColor)

Expand Down

0 comments on commit b66fde0

Please sign in to comment.