suitest-js-api 4.2.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/webSockets.js +4 -0
- package/lib/texts.js +2 -0
- package/package.json +1 -1
package/lib/api/webSockets.js
CHANGED
|
@@ -89,6 +89,10 @@ const webSocketsFactory = (self) => {
|
|
|
89
89
|
throw new SuitestError(texts.testingMinutesExceededMessage());
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
if (content.type === 'releasingDevice') {
|
|
93
|
+
throw new SuitestError(texts.releasingDeviceMessage());
|
|
94
|
+
}
|
|
95
|
+
|
|
92
96
|
if (content.type === 'executorStopped') {
|
|
93
97
|
// Notify user about executor being stopped
|
|
94
98
|
throw new SuitestError(texts.executorStopped());
|
package/lib/texts.js
CHANGED
|
@@ -164,6 +164,8 @@ ${leaves}`,
|
|
|
164
164
|
|
|
165
165
|
testingMinutesExceededMessage: () => 'You reached the limit of testing minutes specified by your subscription plan. If you need more minutes, contact us at sales@suite.st or upgrade your subscription.',
|
|
166
166
|
|
|
167
|
+
releasingDeviceMessage: () => 'The device has been disconnected.',
|
|
168
|
+
|
|
167
169
|
// ipc
|
|
168
170
|
ipcFailedToCreateServer: template`Failed to create IPC server. Port ${0} is busy.`,
|
|
169
171
|
|