UNPKG

@typed/test

Version:
12 lines 394 B
import { blue, green, red } from 'typed-colors'; export function statsToString({ passing, failing, skipped }) { let str = `\n${green(String(passing))} Passed`; if (failing > 0) { str += ` - ${red(String(failing))} Failed`; } if (skipped > 0) { str += ` - ${blue(String(skipped))} Skipped`; } return str + `\n`; } //# sourceMappingURL=statsToString.js.map