Function getSequence

  • This function is a testing utility. It takes an observable and the expected number of values to be observed. The returned Promise either resolves to an array with the observed values, or rejects on error. If the expected number of values is not observed within the configurable timeout, the Promise resolves with the values observed so far.

    Returns

    Type Parameters

    • T

      type for the values to be observed

    Parameters

    • observable: Observable<T>

      the observable.

    • length: number

      the expected number of values to be observed before resolving the result-Promise.

    • timeoutAfter: number = 3000

      the timeout for waiting on the expected number of values. Defaults to 3000ms

    Returns Promise<T[]>

Generated using TypeDoc