Interface Expect

Hierarchy

Index

Call signatures

Properties

Methods

Call signatures

(type: string, message?: string): Expect

Parameters

  • type: string
  • message?: string optional

Returns

Expect

(type: string, message?: string): Expect

Parameters

  • type: string
  • message?: string optional

Returns

Expect

Properties

public Arguments: Expect

public Throw: Throw

public a: TypeComparison

public above: NumberComparer

public always: Expect

public an: TypeComparison

public and: Expect

public arguments: Expect

public at: Expect

public be: Expect

public been: Expect

public below: NumberComparer

public called: Expect

public calledOnce: Expect

public calledThrice: Expect

public calledTwice: Expect

public calledWithNew: Expect

public checked: any

public contain: Include

public deep: Deep

public disabled: any

public empty: Expect

public eq: Equal

public eql: Equal

public eqls: Equal

public equal: Equal

public equals: Equal

public exist: Expect

public false: Expect

public greaterThan: NumberComparer

public gt: NumberComparer

public gte: NumberComparer

public have: Expect

public haveOwnProperty: OwnProperty

public hidden: any

public include: Include

public instanceOf: InstanceOf

public instanceof: InstanceOf

public is: Expect

public itself: Expect

public keys: Keys

public least: NumberComparer

public length: Length

public lengthOf: Length

public lessThan: NumberComparer

public lt: NumberComparer

public lte: NumberComparer

public members: Members

public most: NumberComparer

public not: Expect

public null: Expect

public of: Expect

public ok: Expect

public ownProperty: OwnProperty

public property: Property

public same: Expect

public selected: any

public that: Expect

public throw: Throw

public throws: Throw

public to: Expect

public true: Expect

public undefined: Expect

public visible: any

public with: Expect

Methods

public attr(name: string, value?: string): any

Parameters

  • name: string
  • value?: string optional

Returns

any

public attr(name: string, value?: string): any

Parameters

  • name: string
  • value?: string optional

Returns

any

public calledAfter(spy: Function): Expect

Parameters

  • spy: Function

Returns

Expect

public calledBefore(spy: Function): Expect

Parameters

  • spy: Function

Returns

Expect

public calledOn(context: any): Expect

Parameters

  • context: any

Returns

Expect

public calledWith(args?: Array<any>): Expect

Parameters

  • args?: Array<any> optional

Returns

Expect

public calledWithExactly(args?: Array<any>): Expect

Parameters

  • args?: Array<any> optional

Returns

Expect

public calledWithMatch(args?: Array<any>): Expect

Parameters

  • args?: Array<any> optional

Returns

Expect

public class(className: string): any

Parameters

  • className: string

Returns

any

public class(className: string): any

Parameters

  • className: string

Returns

any

public closeTo(expected: number, delta: number, message?: string): Expect

Parameters

  • expected: number
  • delta: number
  • message?: string optional

Returns

Expect

public css(name: string, value?: string): any

Parameters

  • name: string
  • value?: string optional

Returns

any

public css(name: string, value?: string): any

Parameters

  • name: string
  • value?: string optional

Returns

any

public data(name: string, value?: string): any

Parameters

  • name: string
  • value?: string optional

Returns

any

public data(name: string, value?: string): any

Parameters

  • name: string
  • value?: string optional

Returns

any

public html(html: string): any

Parameters

  • html: string

Returns

any

public html(html: string): any

Parameters

  • html: string

Returns

any

public id(id: string): any

Parameters

  • id: string

Returns

any

public id(id: string): any

Parameters

  • id: string

Returns

any

public key(string: string): Expect

Parameters

  • string: string

Returns

Expect

public match(RegularExpression: RegExp, message?: string): Expect

Parameters

  • RegularExpression: RegExp
  • message?: string optional

Returns

Expect

public respondTo(method: string, message?: string): Expect

Parameters

  • method: string
  • message?: string optional

Returns

Expect

public returned(returnVal: any): Expect

Parameters

  • returnVal: any

Returns

Expect

public satisfy(matcher: Function, message?: string): Expect

Parameters

  • matcher: Function
  • message?: string optional

Returns

Expect

public string(string: string, message?: string): Expect

Parameters

  • string: string
  • message?: string optional

Returns

Expect

public text(text: string): any

Parameters

  • text: string

Returns

any

public text(text: string): any

Parameters

  • text: string

Returns

any

public thrown(errorObjOrErrorTypeStringOrNothing: any): Expect

Parameters

  • errorObjOrErrorTypeStringOrNothing: any

Returns

Expect

public value(value: string): any

Parameters

  • value: string

Returns

any

public value(value: string): any

Parameters

  • value: string

Returns

any

public within(start: number, finish: number, message?: string): Expect

Parameters

  • start: number
  • finish: number
  • message?: string optional

Returns

Expect

public within(start: number, finish: number, message?: string): Expect

Parameters

  • start: number
  • finish: number
  • message?: string optional

Returns

Expect