AssertFail: ((optDetails?, ErrorConstructor?) => never)

Type declaration

    • (optDetails?, ErrorConstructor?): never
    • The 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 masked.

      The optional optDetails can be a string for backwards compatibility with the nodejs assertion library.

      Parameters

      • Optional optDetails: Details

        The details of what was asserted

      • Optional ErrorConstructor: ErrorConstructor

        An optional alternate error constructor to use.

      Returns never

Generated using TypeDoc