• 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

    Type Parameters

    • Ts

    Parameters

    • property: IAsyncProperty<Ts>

      Asynchronous property to be checked

    • Optionalparams: Parameters<Ts>

      Optional parameters to customize the execution

    Returns Promise<void>

    Since 0.0.7

  • 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.

    Type Parameters

    • Ts

    Parameters

    • property: IProperty<Ts>

      Synchronous property to be checked

    • Optionalparams: Parameters<Ts>

      Optional parameters to customize the execution

    Returns void

    Since 0.0.1

  • 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

    Type Parameters

    • Ts

    Parameters

    • property: IRawProperty<Ts, boolean>

      Synchronous or asynchronous property to be checked

    • Optionalparams: Parameters<Ts>

      Optional parameters to customize the execution

    Returns Promise<void> | void

    Since 0.0.7