Skip to content

Expectation::toBeArray ​

Member of Expectation

idl
Expectation.toBeArray, $
  /_expect_failure

Verifies that the expectation value is an array. A structure or object reference is an array when it contains more than one element.

Examples ​

idl
(it.expects([1, 2, 3])).toBeArray
(it.expects(42))._not_.toBeArray

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.