pentf
    Preparing search index...

    Function assertAlways

    • Assert that a condition remains true for the whole timeout.

      Parameters

      • testfunc: () => any

        The test function. Must return true to signal success.

      • Optionaloptions: { checkEvery?: number; message?: string; timeout?: number } = {}

        Options (currently not visible in output due to typedoc bug)

        • OptionalcheckEvery?: number

          Intervals between checks, in milliseconds.

        • Optionalmessage?: string

          Error message shown if the testfunc fails.

        • Optionaltimeout?: number

          How long to wait, in milliseconds.

      Returns Promise<void>