Skip to content

Expectation::toBeAValidIDLTask ​

Member of Expectation

idl
Expectation.toBeAValidIDLTask, $
  /_expect_failure

Verifies that the expectation value is a valid IDL task by using the idl IDLTask() function. The expectations value should be set to the name of a task.

Examples ​

idl
(it.expects('addition_example')).toBeAValidIDLTask
(it.expects('addition'))._not_.toBeAValidIDLTask

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.