I did the validation that the field can receive from 0 to 10, until then it is working, however when placing || (or) null, the test fails when given the value of null, says it expects it to be a number or date.
Where am I wrong? Please help me!
Below the code:
pm.expect(req.field).to.above(-1).to.below(11)||typeof (req.field==null);
});
test response
I am validating the raw of the request, the field is receiving null but it still gives this error. Is the βorβ not working?