Skip to content

Commit

Permalink
fix: returned type
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Jan 25, 2024
1 parent 177cdd6 commit 278082d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/helpers/MockServer.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ I.addInteractionToMockServer({

- `interaction` **(CodeceptJS.MockInteraction | [object][1])** add behavior to the mock server

Returns **any** Promise<void>
Returns **any** void

### startMockServer

Expand All @@ -197,13 +197,13 @@ Start the mock server

- `port` **[number][2]?** start the mock server with given port

Returns **any** Promise<void>
Returns **any** void

### stopMockServer

Stop the mock server

Returns **any** Promise<void>
Returns **any** void

[1]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object

Expand Down
6 changes: 3 additions & 3 deletions lib/helper/MockServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class MockServer {
* Start the mock server
* @param {number} [port] start the mock server with given port
*
* @returns Promise<void>
* @returns void
*/
async startMockServer(port) {
const _config = { ...config };
Expand All @@ -164,7 +164,7 @@ class MockServer {
/**
* Stop the mock server
*
* @returns Promise<void>
* @returns void
*
*/
async stopMockServer() {
Expand Down Expand Up @@ -210,7 +210,7 @@ class MockServer {
*
* @param {CodeceptJS.MockInteraction|object} interaction add behavior to the mock server
*
* @returns Promise<void>
* @returns void
*
*/
async addInteractionToMockServer(interaction) {
Expand Down

0 comments on commit 278082d

Please sign in to comment.