The class can be used to build ChaiJS BDD style assertions that can be asserted against a running application from a WebDriverJS test. It supports a subset of assertions specified in the following documentation: https://www.chaijs.com/api/bdd/.

The following assertions are currently not supported: instanceof, throw, respondTo, satisfy, itself, change, increase, decrease, by

Type Parameters

  • T = any

Hierarchy

  • Expectation

Constructors

  • Create an Expectation to be evaluated on the client against the underlying data model.

    Type Parameters

    • T = any

    Parameters

    • expression: string

      An expression statement to be evaluated for this Expectation against the underlying viewmodel/page var

    Returns Expectation<T>

Properties

assertion: {
    chain: any[];
    expression: string;
}

Type declaration

  • chain: any[]
  • expression: string

Accessors

Methods

  • Parameters

    • expected: number
    • delta: number
    • Optional msg: string

    Returns Expectation<T>

  • Parameters

    • name: string
    • Optional descriptor: object
    • Optional msg: string

    Returns Expectation<T>

  • Parameters

    • name: string
    • Optional val: any
    • Optional msg: string

    Returns Expectation<T>

  • Parameters

    • start: number
    • finish: number
    • Optional msg: string

    Returns Expectation<T>

Generated using TypeDoc