Interface Expectation

class

Index

Properties

Methods

Properties

public not: Expectation

Methods

public toBe(expectedValue: any)

Parameters

  • expectedValue: any

public toBeCloseTo(expectedValue: number, precision?: number)

Parameters

  • expectedValue: number
  • precision?: number optional

public toBeDefined(expectedValue: any)

Parameters

  • expectedValue: any

public toBeFalsy(expectedValue: any)

Parameters

  • expectedValue: any

public toBeGreaterThan(expectedValue: any)

Parameters

  • expectedValue: any

public toBeLessThan(expectedValue: any)

Parameters

  • expectedValue: any

public toBeNaN(expectedValue: any)

Parameters

  • expectedValue: any

public toBeNull(expectedValue: any)

Parameters

  • expectedValue: any

public toBeTruthy(expectedValue: any)

Parameters

  • expectedValue: any

public toBeUndefined(value: any)

Parameters

  • value: any

public toContain(element: any)

Parameters

  • element: any

public toEqual(expectedValue: any)

Parameters

  • expectedValue: any

public toMatch(regexp: RegExp)

Parameters

  • regexp: RegExp

public toThrow()