Optional
details: DetailsThe details of what was asserted
Optional
errConstructor: GenericErrorConstructorAn optional alternate error constructor to use
Optional
options: AssertMakeErrorOptionsThe assert.equal
method
Assert that two values must be Object.is
.
What we received
What we wanted
Optional
details: DetailsThe details of what was asserted
Optional
errConstructor: GenericErrorConstructorAn optional alternate error constructor to use
Optional
options: AssertMakeErrorOptionsThe assert.fail
method.
Fail an assertion, recording full details to the console and
raising an exception with a message in which details
substitution values
have been redacted.
The optional optDetails
can be a string for backwards compatibility
with the nodejs assertion library.
Optional
details: DetailsThe details of what was asserted
Optional
errConstructor: GenericErrorConstructorAn optional alternate error constructor to use
Optional
options: AssertMakeErrorOptionsThe assert.string
method.
assert.string(v)
is equivalent to assert.typeof(v, 'string')
. We
special case this one because it is the most frequently used.
Assert an expected typeof result.
Optional
details: DetailsThe details of what was asserted
The truthy/falsy value we're testing