Skip to content

Commit

Permalink
fix: remove pushes for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
pimlie committed Oct 10, 2018
1 parent 9336fbc commit 418d84a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/reporters/fancy.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,12 @@ export default class FancyReporter extends BasicReporter {
this._colorCache[bgColorKey] = chalkBgColor(logObj.color).black('|').split('|')
}

const argv = []
// textColor=%1 additionalColor=%2, bgColor=%3 reset=%4
argv.push(this._colorCache[logObj.color][0])
argv.push(this._colorCache[logObj.additionalColor || 'grey'][0])
Array.prototype.push.apply(argv, this._colorCache[bgColorKey])
const argv = [
this._colorCache[logObj.color][0],
this._colorCache[logObj.additionalColor || 'grey'][0],
this._colorCache[bgColorKey][0],
this._colorCache[bgColorKey][1]
]

const icon = fields.type === 'log' ? '' : logObj.icon || ICONS[fields.type] || ICONS.default

Expand Down

0 comments on commit 418d84a

Please sign in to comment.