Interface Matchers

Index

Construct signatures

Properties

Methods

Construct signatures

constructor(env: Env, actual: any, spec: Env, isNot?: boolean): any

Parameters

  • env: Env
  • actual: any
  • spec: Env
  • isNot?: boolean optional

Returns

any

Properties

public Any: Any

public actual: any

public env: Env

optional public isNot?: boolean

public not: Matchers

public spec: Env

Methods

public message(): any

Returns

any

public toBe(expected: any): boolean

Parameters

  • expected: any

Returns

boolean

public toBeCloseTo(expected: any, precision: any): boolean

Parameters

  • expected: any
  • precision: any

Returns

boolean

public toBeDefined(): boolean

Returns

boolean

public toBeFalsy(): boolean

Returns

boolean

public toBeGreaterThan(expected: any): boolean

Parameters

  • expected: any

Returns

boolean

public toBeLessThan(expected: any): boolean

Parameters

  • expected: any

Returns

boolean

public toBeNaN(): boolean

Returns

boolean

public toBeNull(): boolean

Returns

boolean

public toBeTruthy(): boolean

Returns

boolean

public toBeUndefined(): boolean

Returns

boolean

public toContain(expected: any): boolean

Parameters

  • expected: any

Returns

boolean

public toContainHtml(expected: string): boolean

Parameters

  • expected: string

Returns

boolean

public toContainText(expected: string): boolean

Parameters

  • expected: string

Returns

boolean

public toEqual(expected: any): boolean

Parameters

  • expected: any

Returns

boolean

public toHaveBeenCalled(): boolean

Returns

boolean

public toHaveBeenCalledWith(params?: Array<any>): boolean

Parameters

  • params?: Array<any> optional

Returns

boolean

public toMatch(expected: any): boolean

Parameters

  • expected: any

Returns

boolean

public toNotBe(expected: any): boolean

Parameters

  • expected: any

Returns

boolean

public toNotContain(expected: any): boolean

Parameters

  • expected: any

Returns

boolean

public toNotEqual(expected: any): boolean

Parameters

  • expected: any

Returns

boolean

public toNotMatch(expected: any): boolean

Parameters

  • expected: any

Returns

boolean

public toThrow(expected?: any): boolean

Parameters

  • expected?: any optional

Returns

boolean

public toThrowError(expected?: any): boolean

Parameters

  • expected?: any optional

Returns

boolean

public wasNotCalled(): boolean

Returns

boolean