Interface: ThrowUnlessFailure (original) (raw)
Home
Modules
Namespaces
Classes
Interfaces
- AsymmetricEqualityTester
- Configuration
- Reporter
- ReporterCapabilities
- Spec
- SpyStrategy
- Suite
- ThrowUnlessFailure
Global
- afterAll
- afterEach
- beforeAll
- beforeEach
- describe
- expect
- expectAsync
- fail
- fdescribe
- fit
- it
- pending
- setSpecProperty
- setSuiteProperty
- spyOn
- spyOnAllFunctions
- spyOnProperty
- throwUnless
- throwUnlessAsync
- xdescribe
- xit
ThrowUnlessFailure
Represents a failure of an expectation evaluated withthrowUnless. 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