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
Use .toContainAnyKeys when checking if an object contains at least one of the provided keys.
test('passes when object contains at least one matching key',()=>{consto={a: 'hello',b: 'world'};expect(o).toContainAnyKeys(['a']);expect(o).toContainAnyKeys(['b']);expect(o).toContainAnyKeys(['b','c']);expect(o).not.toContainAnyKeys(['c']);});
The text was updated successfully, but these errors were encountered:
Feature Request
.toContainAnyKeys([keys])
Use
.toContainAnyKeys
when checking if an object contains at least one of the provided keys.The text was updated successfully, but these errors were encountered: