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 toBe(selector: JQuery): boolean

Parameters

Returns

boolean

public toBeChecked(): boolean

Returns

boolean

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

Parameters

  • expected: any
  • precision: any

Returns

boolean

public toBeDefined(): boolean

Returns

boolean

public toBeDisabled(): boolean

Returns

boolean

public toBeEmpty(): boolean

Returns

boolean

public toBeFalsy(): boolean

Returns

boolean

public toBeFocused(): boolean

Returns

boolean

public toBeGreaterThan(expected: any): boolean

Parameters

  • expected: any

Returns

boolean

public toBeHidden(): boolean

Returns

boolean

public toBeLessThan(expected: any): boolean

Parameters

  • expected: any

Returns

boolean

public toBeMatchedBy(selector: string): boolean

Parameters

  • selector: string

Returns

boolean

public toBeNaN(): boolean

Returns

boolean

public toBeNull(): boolean

Returns

boolean

public toBeSelected(): boolean

Returns

boolean

public toBeTruthy(): boolean

Returns

boolean

public toBeUndefined(): boolean

Returns

boolean

public toBeVisible(): boolean

Returns

boolean

public toContain(expected: any): boolean

Parameters

  • expected: any

Returns

boolean

public toContain(selector: JQuery): boolean

Parameters

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 toExist(): boolean

Returns

boolean

public toHandle(event: any): boolean

Parameters

  • event: any

Returns

boolean

public toHandleWith(eventName: string, eventHandler: any): boolean

Parameters

  • eventName: string
  • eventHandler: any

Returns

boolean

public toHaveAttr(attributeName: string, expectedAttributeValue?: any): boolean

Parameters

  • attributeName: string
  • expectedAttributeValue?: any optional

Returns

boolean

public toHaveBeenCalled(): boolean

Returns

boolean

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

Parameters

  • params?: Array<any> optional

Returns

boolean

public toHaveBeenPrevented(): boolean

Returns

boolean

public toHaveBeenPreventedOn(selector: string): boolean

Parameters

  • selector: string

Returns

boolean

public toHaveBeenStopped(): boolean

Returns

boolean

public toHaveBeenStoppedOn(selector: string): boolean

Parameters

  • selector: string

Returns

boolean

public toHaveBeenTriggered(): boolean

Returns

boolean

public toHaveBeenTriggeredOn(selector: string): boolean

Parameters

  • selector: string

Returns

boolean

public toHaveBeenTriggeredOnAndWith(selector: string, args?: Array<any>): boolean

Parameters

  • selector: string
  • args?: Array<any> optional

Returns

boolean

public toHaveClass(className: string): boolean

Parameters

  • className: string

Returns

boolean

public toHaveCss(css: any): boolean

Parameters

  • css: any

Returns

boolean

public toHaveData(key: any, expectedValue: any): boolean

Parameters

  • key: any
  • expectedValue: any

Returns

boolean

public toHaveHtml(html: string): boolean

Parameters

  • html: string

Returns

boolean

public toHaveId(id: string): boolean

Parameters

  • id: string

Returns

boolean

public toHaveLength(length: number): boolean

Parameters

  • length: number

Returns

boolean

public toHaveProp(propertyName: string, expectedPropertyValue?: any): boolean

Parameters

  • propertyName: string
  • expectedPropertyValue?: any optional

Returns

boolean

public toHaveText(text: string): boolean

Parameters

  • text: string

Returns

boolean

public toHaveValue(value: any): boolean

Parameters

  • value: any

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