From 278082dc677c03e4d8ffc315f9cdf4856efa8c76 Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Thu, 25 Jan 2024 14:19:46 +0100 Subject: [PATCH] fix: returned type --- docs/helpers/MockServer.md | 6 +++--- lib/helper/MockServer.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/helpers/MockServer.md b/docs/helpers/MockServer.md index db70b542a..25a42ca5a 100644 --- a/docs/helpers/MockServer.md +++ b/docs/helpers/MockServer.md @@ -187,7 +187,7 @@ I.addInteractionToMockServer({ - `interaction` **(CodeceptJS.MockInteraction | [object][1])** add behavior to the mock server -Returns **any** Promise +Returns **any** void ### startMockServer @@ -197,13 +197,13 @@ Start the mock server - `port` **[number][2]?** start the mock server with given port -Returns **any** Promise +Returns **any** void ### stopMockServer Stop the mock server -Returns **any** Promise +Returns **any** void [1]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object diff --git a/lib/helper/MockServer.js b/lib/helper/MockServer.js index 390d9f4ee..9cb748808 100644 --- a/lib/helper/MockServer.js +++ b/lib/helper/MockServer.js @@ -152,7 +152,7 @@ class MockServer { * Start the mock server * @param {number} [port] start the mock server with given port * - * @returns Promise + * @returns void */ async startMockServer(port) { const _config = { ...config }; @@ -164,7 +164,7 @@ class MockServer { /** * Stop the mock server * - * @returns Promise + * @returns void * */ async stopMockServer() { @@ -210,7 +210,7 @@ class MockServer { * * @param {CodeceptJS.MockInteraction|object} interaction add behavior to the mock server * - * @returns Promise + * @returns void * */ async addInteractionToMockServer(interaction) {