Documentation Home
This page is for an older version of Jasmine (5.1).
The current stable version of Jasmine is: 5.5. You can also look at the docs for the next release: Edge

Interface: ThrowUnlessFailure

ThrowUnlessFailure

Represents a failure of an expectation evaluated with throwUnless. Properties of this error are a subset of the properties of Expectation and have the same values.

Properties:
Name Type Description
matcherName String

The name of the matcher that was executed for this expectation.

message String

The failure message for the expectation.

passed Boolean

Whether the expectation passed or failed.

expected Object

If the expectation failed, what was the expected value.

actual Object

If the expectation failed, what actual value was produced.

Extends

  • Error