You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the reason this doesn't work currently is that contains() is also used to check if a string contains a substring, where wrapping doesn't make sense. But we should be able to call wrapMatcher() on the argument at match-time if the actual value is a collection.
This would technically be a breaking change... we should do it as part of the 1.0.0 refactor.
Use case:
Right now, this doesn't work, and the user has to explicitly call
wrapMatcher()
to get the desired behavior:It'd be more elegant if
contains()
implicitly calledwrapMatcher()
if it were matching against a non-string value.The text was updated successfully, but these errors were encountered: