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