* Print the comment on log. Also, adding a step in the `Test.steps` object * @param {string} msg * @param {string} color * @inner * * ⚠️ returns a promise which is synchronized internally by recorder
(msg, color = 'cyan')
| 19 | * ⚠️ returns a promise which is synchronized internally by recorder |
| 20 | */ |
| 21 | async say(msg, color = 'cyan') { |
| 22 | const step = new Step('say', 'say') |
| 23 | step.status = 'passed' |
| 24 | return recordStep(step, [msg]).then(() => { |
| 25 | // this is backward compatibility as this event may be used somewhere |
| 26 | event.emit(event.step.comment, msg) |
| 27 | output.say(msg, `${color}`) |
| 28 | }) |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | /** |
no test coverage detected