the response can be either true or false. I need to pass the test whether it's true or false in the response but it should check the condition if the value is true to pass the test as well as if false
script i am using is but not working pm.expect(jsonData.data[index].emailnotification).to.be.oneof([true,false])
the response of api is in array object e.g
"emailnotification": true