Skip to content

Expectation::toContainAll ​

Member of Expectation

idl
Expectation.toContainAll, values, $
  /_expect_failure

Verifies that the expectation value (an array, list, or the values of a hash, orderedhash, or dictionary) contains every one of the values specified. See idl toContainEqual for how items are compared.

Examples ​

idl
(it.expects(['a', 'b', 'c'])).toContainAll, ['a', 'c']
(it.expects([1, 2, 3]))._not_.toContainAll, [1, 4]

Arguments ​

values ​

requiredinputtype=Array<any> | List<any>

Specify the items to look for. Must contain at least one item.

Keywords ​

_expect_failure {#kw-_expect_failure} ​

optionalinputtype=Boolean

If the test fails for some reason, set this to force passing because we expected failure. This keyword is for internal use only.

Licensed under MIT.