b9b03349da16ceee2f746587c61d442cb9efab92.svn-base 358 Bytes
const c = require('chalk')
module.exports = ({pass, fail, todo, skip, total}) =>
  c.white(
  (fail ? c.red(' '+fail+' failed') : '') +
  (todo ? c.magenta(' '+todo+' todo') : '') +
  (skip ? c.cyan(' '+skip+' skip') : '') +
  (skip || todo || fail ? ' of' : '') +
  (total ? c.bold(' '+total) : '') +
  (total && pass === total ? c.green(' OK ') : ' ')
  )