From ca077dc1f57b1aa655500511f89135fd337353d4 Mon Sep 17 00:00:00 2001 From: PeterNgTr Date: Sat, 29 Oct 2022 14:26:52 +0200 Subject: [PATCH 1/3] fix(docs): no async say method --- lib/actor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/actor.js b/lib/actor.js index 94b66ec2b..a7fd8daac 100644 --- a/lib/actor.js +++ b/lib/actor.js @@ -13,10 +13,10 @@ const output = require('./output'); */ class Actor { /** - * add print comment method` + * add print comment method * @param {string} msg * @param {string} color - * @return {Promise | undefined} + * @return {Promise | void} * @inner */ say(msg, color = 'cyan') { From 807bcf9247a36072c0dffbb3120e2ea3a227865d Mon Sep 17 00:00:00 2001 From: PeterNgTr Date: Sat, 29 Oct 2022 14:28:11 +0200 Subject: [PATCH 2/3] fix(docs): no async say method --- docs/webapi/say.mustache | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/webapi/say.mustache b/docs/webapi/say.mustache index f1e139aa0..613c4e2c9 100644 --- a/docs/webapi/say.mustache +++ b/docs/webapi/say.mustache @@ -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 From eeda16f4f5aac96402b70452535c3c44f059fe9c Mon Sep 17 00:00:00 2001 From: PeterNgTr Date: Sat, 29 Oct 2022 14:31:22 +0200 Subject: [PATCH 3/3] fix(docs): no async say method --- lib/actor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/actor.js b/lib/actor.js index a7fd8daac..083021772 100644 --- a/lib/actor.js +++ b/lib/actor.js @@ -16,11 +16,11 @@ class Actor { * add print comment method * @param {string} msg * @param {string} color - * @return {Promise | void} + * @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}`); });