Expectation::toHaveTag
Member of Expectation
idl
Expectation.toHaveTag, name, $
/_expect_failureVerifies that the expectation value (a structure) has a tag. Tag names are not case sensitive.
Examples
idl
(it.expects({a: 1, b: 2})).toHaveTag, 'a'
(it.expects({a: 1, b: 2})).toHaveTag, ['A', 'b']
(it.expects({a: 1}))._not_.toHaveTag, 'c'Arguments
name
requiredinputtype=String | Array<String>Specify the tag to look for. When an array is given, every tag must exist.
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.