It is possible to do a x.toEqual('hello').or.toEqual('bye')?
I want to be able to do Expects that have multiple correct possibilities.
You can always do an if statement that returns a boolean and then check if that boolean is true.
var test = false;
if(x=='hello' || x=='bye'){
test = true;
}
expect(test).toEqual(true);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With