new Failure()
A failure provides the details of a failure that happened during the execution of a test case.
The failure can be:
- an assertion failure: an assertion failed
- an error failure: an expected error occured
- Source:
Methods
isError() → {boolean}
- Source:
Returns:
-
true if the failure is an error failure otherwise it is an assertion failure
-
- Type
- boolean
message() → {string}
- Source:
Returns:
-
the error message
-
- Type
- string
stackTrace() → {string}
- Source:
Returns:
-
the stack trace
-
- Type
- string