Interface: ThrowUnlessFailure

ThrowUnlessFailure

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

Note: The expected and actual properties are deprecated and may be removed in a future release. In many Jasmine configurations they are passed through JSON serialization and deserialization, which is inherently lossy. In such cases, the expected and actual values may be placeholders or approximations of the original objects.

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

Deprecated. If the expectation failed, what was the expected value.

actual Object

Deprecated. If the expectation failed, what actual value was produced.

Extends

  • Error