assert.AssertionError
Extends Error
Indicates the failure of an assertion. All errors thrown by the assert module will be instances of the AssertionError class.
Properties 5
actual
anySet to the actual argument for methods such as assert.strictEqual().
code
StringValue is always ERR_ASSERTION to show that the error is an assertion error.
expected
anySet to the expected value for methods such as assert.strictEqual().
generatedMessage
BooleanIndicates if the message was auto-generated (true) or not.
operator
StringSet to the passed in operator value.
Methods 1
A subclass of Error that indicates the failure of an assertion.
| Parameters | Type | Description |
|---|---|---|
| options? | assert.AssertionError.options | options 5 fields
|