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.
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);