Optionaldetails: DetailsThe details associated with assertion failure (falsy condition)
OptionalerrConstructor: GenericErrorConstructorAn optional alternate error constructor to use
Optionaloptions: AssertMakeErrorOptionsAssert that two values are the same as observed by Object.is.
What we received
What we wanted
Optionaldetails: DetailsThe details associated with assertion failure (Object.is returning false)
OptionalerrConstructor: GenericErrorConstructorAn optional alternate error constructor to use
Optionaloptions: AssertMakeErrorOptionsFail an assertion, raising an exception with a message in which unquoted
details substitution values may have been redacted into typeof types
but are still available for logging to an associated console.
Optionaldetails: DetailsThe details of what was asserted
OptionalerrConstructor: GenericErrorConstructorAn optional alternate error constructor to use
Optionaloptions: AssertMakeErrorOptionsAssert that a value is a primitive string.
assert.string(v) is equivalent to assert.typeof(v, 'string'). We
special case this one because it is the most frequently used.
Optionaldetails: DetailsThe details of what was asserted
The condition whose truthiness is being asserted