Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HookFunction

Hierarchy

  • HookFunction

Callable

  • __call(fn: Func): void
  • __call(fn: AsyncFunc): void
  • __call(name: string, fn?: Func): void
  • __call(name: string, fn?: AsyncFunc): void
  • [bdd, qunit, tdd] Describe a "hook" to execute the given callback fn. The name of the function is used as the name of the hook.

    • Only available when invoked via the mocha CLI.

    Parameters

    Returns void

  • [bdd, qunit, tdd] Describe a "hook" to execute the given callback fn. The name of the function is used as the name of the hook.

    • Only available when invoked via the mocha CLI.

    Parameters

    Returns void

  • [bdd, qunit, tdd] Describe a "hook" to execute the given title and callback fn.

    • Only available when invoked via the mocha CLI.

    Parameters

    • name: string
    • Optional fn: Func

    Returns void

  • [bdd, qunit, tdd] Describe a "hook" to execute the given title and callback fn.

    • Only available when invoked via the mocha CLI.

    Parameters

    Returns void

Generated using TypeDoc