Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): say action no async #3484

Closed
wants to merge 3 commits into from
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