Optional
options: { actual?: unknown; expected?: unknown; message?: string; operator?: string; stackStartFn?: Function }Optional
actual?: unknownThe actual
property on the error instance.
Optional
expected?: unknownThe expected
property on the error instance.
Optional
message?: stringIf provided, the error message is set to this value.
Optional
operator?: stringThe operator
property on the error instance.
Optional
stackIf provided, the generated stack trace omits frames before this function.
Generated using TypeDoc
Indicates the failure of an assertion. All errors thrown by the
assert
module will be instances of theAssertionError
class.