Skip to content

Commit

Permalink
fix(fancy): logObj.type
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed May 27, 2018
1 parent 30861fa commit 418be28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reporters/fancy.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class FancyReporter {
this.clear()
}

const icon = logObj.icon || ICONS[type] || ICONS.default
const icon = logObj.icon || ICONS[logObj.type] || ICONS.default

if (logObj.badge) {
this.stream.write('\n\n' + this.formatBadge(logObj.type, logObj.color, icon) + message + '\n\n')
Expand Down

0 comments on commit 418be28

Please sign in to comment.