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 .toContainKeys when checking if an object has all of the provided keys.
test('passes when object contains all keys',()=>{consto={a: 'foo',b: 'bar',c: 'baz'};expect(o).toContainKeys(['a','b']);expect(o).toContainKeys(['b','c']);expect(o).not.toContainKeys(['d']);});
The text was updated successfully, but these errors were encountered:
Feature Request
.toContainKeys([keys])
Use
.toContainKeys
when checking if an object has all of the provided keys.The text was updated successfully, but these errors were encountered: