Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
docs(eyes-sdk-core): update JSDoc and return type for deleteBatchSess…
Browse files Browse the repository at this point in the history
…ions
  • Loading branch information
astappiev committed Sep 17, 2019
1 parent 0728e08 commit af38cfe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/eyes-sdk-core/lib/server/ServerConnector.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,10 @@ class ServerConnector {
}

/**
* Stops the running session.
* Stops the running batch sessions.
*
* @param {string} batchId - The running session to be stopped.
* @return {Promise<TestResults>} - TestResults object for the stopped running session
* @param {string} batchId - The batchId to be stopped.
* @return {Promise<void>}
*/
async deleteBatchSessions(batchId) {
ArgumentGuard.notNull(batchId, 'batchId');
Expand All @@ -356,6 +356,7 @@ class ServerConnector {
const validStatusCodes = [HTTP_STATUS_CODES.OK];
if (validStatusCodes.includes(response.status)) {
this._logger.verbose('ServerConnector.deleteBatchSessions - delete succeeded');
return;
}

throw new Error(`ServerConnector.deleteBatchSessions - unexpected status (${response.statusText})`);
Expand Down

0 comments on commit af38cfe

Please sign in to comment.