We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
expect(x).to.be.in([x1, x2, x3]) will be true if 'expect(x).to.eql(x1)` or x2 or x3.
expect(x).to.be.in([x1, x2, x3])
The idea is to use with any object. Example:
expect(['encode', 'utf8']).be.in([ ['encode','utf8'], ['overwrite', false] ])
I couldn't use expect([x1, x2, x3]).to.include(x) because it uses indexOf doesn't work for objects (because implies ===).
expect([x1, x2, x3]).to.include(x)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
expect(x).to.be.in([x1, x2, x3])
will be true if 'expect(x).to.eql(x1)` or x2 or x3.The idea is to use with any object. Example:
I couldn't use
expect([x1, x2, x3]).to.include(x)
because it uses indexOf doesn't work for objects (because implies ===).The text was updated successfully, but these errors were encountered: