I have created a variable called values, this value contains an array below:
var values = ["A","B", "C","D","E","F"]
I want to write a test to match json response data to one of the values in values.
var jsonData = pm.response.json();
pm.test("risk check", function () {
pm.expect(jsonData.result.value).is.to.equal(values);
});
The data in response result.value can only be A, B, C, D, E, F
{
"result":{
"score":{
"value":"F"
}
}
}