Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/webapi/say.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ I.say('This is by default'); //cyan is used
```
@param {string} text expected on console log.
@param {string} [color='cyan'] color you want to use.
⚠️ returns a _promise_ which is synchronized internally by recorder
6 changes: 3 additions & 3 deletions lib/actor.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ const output = require('./output');
*/
class Actor {
/**
* add print comment method`
* add print comment method
* @param {string} msg
* @param {string} color
* @return {Promise<any> | undefined}
* @return {void}
* @inner
*/
say(msg, color = 'cyan') {
return recorder.add(`say ${msg}`, () => {
recorder.add(`say ${msg}`, () => {
event.emit(event.step.comment, msg);
output.say(msg, `${color}`);
});
Expand Down