• Run the property, throw in case of failure

    It can be called directly from describe/it blocks of Mocha. No meaningful results are produced in case of success.

    WARNING: Has to be awaited

    Remarks

    Since 0.0.7

    Type Parameters

    • Ts

    Parameters

    • property: IAsyncProperty<Ts>

      Asynchronous property to be checked

    • Optional params: Parameters<Ts>

      Optional parameters to customize the execution

    Returns Promise<void>

  • Run the property, throw in case of failure

    It can be called directly from describe/it blocks of Mocha. No meaningful results are produced in case of success.

    Remarks

    Since 0.0.1

    Type Parameters

    • Ts

    Parameters

    • property: IProperty<Ts>

      Synchronous property to be checked

    • Optional params: Parameters<Ts>

      Optional parameters to customize the execution

    Returns void

  • Run the property, throw in case of failure

    It can be called directly from describe/it blocks of Mocha. No meaningful results are produced in case of success.

    WARNING: Returns a promise to be awaited if the property is asynchronous

    Remarks

    Since 0.0.7

    Type Parameters

    • Ts

    Parameters

    • property: IRawProperty<Ts, boolean>

      Synchronous or asynchronous property to be checked

    • Optional params: Parameters<Ts>

      Optional parameters to customize the execution

    Returns Promise<void> | void

Generated using TypeDoc