Expectation::toFindInArray
Member of Expectation
idl
Expectation.toFindInArray, compare, $
/_expect_failureSimilar to idl expectation.toContain, this method verifies that an array has the value compare as one of the elements. This method is specifically restricted to arrays.
Examples
idl
(it.expects([1, 2, 42])).toFindInArray, 42
(it.expects(['a', 'b']))._not_.toFindInArray, 'c'Arguments
compare
requiredinputtype=anySpecify a scalar value to find in the expectation value array.
Keywords
_expect_failure {#kw-_expect_failure}
optionalinputtype=BooleanIf the test fails for some reason, set this to force passing because we expected failure. This keyword is for internal use only.