-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
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
include and contains? #25
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am attempting to assert that any element of an array of strings contains a particular substring.
The assertion
['first', 'second'].should.include.an.item.that.contains 'con'
fails withexpected 'second' to include 'con'
.Is this supposed to work? Without looking at the internals, I could see how using
include
in the sense of array elements, andcontain
in the sense of a substring in one assertion might be confusing.The text was updated successfully, but these errors were encountered: