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
Feature Request
Description:
Only by reading the names is not very straightforward to reason about the difference immediately, specially when the description of toIncludeAllMembers mentions the same members.
The difference as I understand is this:
expect([1,2,3]).toIncludeSameMembers([1,2,3]);// passes, as array elements are equal, extra elements are not allowedexpect([1,2,3,4]).toIncludeAllMembers([1,2,3]);// passes, even though there's an extra 4, it also contains [1, 2, 3]
Possible solution:
Improve the description text, emphasizing that for toIncludeSameMembers no extra values are allowed.
Add negative test cases (e.g using .not) instead of just positive examples.
The text was updated successfully, but these errors were encountered:
Feature Request
Description:
Only by reading the names is not very straightforward to reason about the difference immediately, specially when the description of
toIncludeAllMembers
mentionsthe same members
.The difference as I understand is this:
Possible solution:
toIncludeSameMembers
no extra values are allowed.The text was updated successfully, but these errors were encountered: