suitest-js-api 3.2.3 → 3.2.4
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/utils/chainUtils.js +8 -1
- package/package.json +1 -1
package/lib/utils/chainUtils.js
CHANGED
|
@@ -219,10 +219,17 @@ const applyNegation = (comparator, data) => {
|
|
|
219
219
|
*/
|
|
220
220
|
const applyUntilCondition = (socketMessage, data) => {
|
|
221
221
|
if (data.until) {
|
|
222
|
-
|
|
222
|
+
const newSocketMessage = {
|
|
223
223
|
...socketMessage,
|
|
224
224
|
condition: data.until,
|
|
225
225
|
};
|
|
226
|
+
|
|
227
|
+
// need negateCondition is mandatory for snippet command
|
|
228
|
+
if (data.type === 'runSnippet') {
|
|
229
|
+
newSocketMessage.negateCondition = false;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
return newSocketMessage;
|
|
226
233
|
}
|
|
227
234
|
|
|
228
235
|
return socketMessage;
|