Skip to main content

ArrayContains

Matches an Array which contains elements that match the given matchers - note that two different matchers may be satisfied by the same item in the array.

import { matchers } from '@contract-case/case-definition-dsl'

new matchers.arrays.ArrayContains(matchers: any[])

Parameters

NameTypeDescription
matchersany[]any number of matchers, each of which must be found inside the array.