Asserts that an object
contain any provided value.
The value must be an object
Symbol
Asserts that an object
contain any provided value.
The value must be an object
the expected value
const o = { a: 'foo', b: 'bar', c: 'baz' };
expect(o).toContainAnyValues(['qux', 'foo']);
expect(o).toContainAnyValues(['qux', 'bar']);
expect(o).toContainAnyValues(['qux', 'baz']);
expect(o).not.toContainAnyValues(['qux']);