thrownewError(`The post-JSON query evaluated response from the server is of type ${typeofresponse}, which cannot be directly compared to the expected value`);
thrownewError(`The post-JSON query evaluated response from the server is of type ${typeofresponse}, which cannot be directly compared to the expected value`);
}
}
letjsonQueryExpression;
letjsonQueryExpression;
@ -435,7 +438,7 @@ async function evaluateJsonQuery(data, jsonPath, jsonPathOperator, expectedValue
value:response.toString(),
value:response.toString(),
expected:expectedValue.toString()
expected:expectedValue.toString()
});
});
if(response ===undefined||status ===undefined){
if(status ===undefined){
thrownewError("Query evaluation returned undefined. Check query syntax and the structure of the response data");
thrownewError("Query evaluation returned undefined. Check query syntax and the structure of the response data");
}
}
return{
return{
@ -444,7 +447,8 @@ async function evaluateJsonQuery(data, jsonPath, jsonPathOperator, expectedValue
thrownewError(`The post-JSON query evaluated response from the server is of type ${typeofresponse}, which cannot be directly compared to the expected value`);
thrownewError(`The post-JSON query evaluated response from the server is of type ${typeofresponse}, which cannot be directly compared to the expected value`);