method
test.Matchers.toContainValues
expected: unknown[]
): void;
Asserts that an object contains the provided values.
This is the same as toContainValue, but accepts an array of values instead.
The value must be an object.
@param expected
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']);