Skip to content

Expectation::toBeNull ​

Member of Expectation

idl
Expectation.toBeNull, $
  /_expect_failure

Verifies that the value of an expectation is null or undefined using IDL's idl isa() function with the null keyword set.

Examples ​

idl
(it.expects(!null)).toBeNull
(it.expects(42))._not_.toBeNull

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.