(step, color = true)
| 91 | } |
| 92 | |
| 93 | #getDisplayLine(step, color = true) { |
| 94 | const spacer = step.preFmt ? '' : !color ? '- ' : c.gray(' -- ') |
| 95 | const realColor = ['gray', 'cyan', 'yellow', 'red'][step.lvl] |
| 96 | |
| 97 | if ( !color ) { |
| 98 | return `${spacer}${step.text}` |
| 99 | } |
| 100 | return `${spacer}${c[realColor](step.text)}` |
| 101 | } |
| 102 | |
| 103 | #getTestSummary(color = true) { |
| 104 | if ( this.#didFail ) { |