I just want to verify my API response with one line of code(script) only.
As of now my API response is inconsistent, and response gonna be either
What gonna be best way to verify those responses with one line code only?
As of now my script is like:
I was going through chai assertion “anyof” but got to know it will work with numbers only.
Note: If response looks like below then
who one line of code will be?