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
We already have a toMatch method. Maybe we should augment that with tmatch-style support instead of further modifying toInclude? IMO "include" methods should check the expected value is a subset of the actual value, respecting types. "match" methods make it more obvious that we support things like RegExp matches, ala String.prototype.match.
mjackson
changed the title
Discussion: expect(object).toInclude(otherObject) - should use tmatch?
Add tmatch support to expect(object).toMatch
Apr 19, 2016
tmatch does a better job of deeply checking for a partial object in another.
Specifically with:
Should we change the code (as I PRed @ #80) to use it?
The text was updated successfully, but these errors were encountered: