Asserts that an object
contain the provided value.
This is the same as toContainValue, but accepts an array of values instead.
The value must be an object
method
Asserts that an object
contain the provided value.
This is the same as toContainValue, but accepts an array of values instead.
The value must be an object
the expected value
const o = { a: 'foo', b: 'bar', c: 'baz' };
expect(o).toContainValues(['foo']);
expect(o).toContainValues(['baz', 'bar']);
expect(o).not.toContainValues(['qux', 'foo']);