Interface Spec

Hierarchy

Index

Construct signatures

Properties

Methods

Construct signatures

constructor(env: Env, suite: Suite, description: string): any

Parameters

  • env: Env
  • suite: Suite
  • description: string

Returns

any

Properties

public afterCallbacks: SpecFunction[]

public description: string

public env: Env

public id: number

public matchersClass: Matchers

public queue: Queue

public results_: NestedResults

public spies_: Spy[]

public suite: Suite

Methods

public addBeforesAndAftersToQueue()

public addMatcherResult(result: Result)

Parameters

public addMatchers(matchersPrototype: any)

Parameters

  • matchersPrototype: any

public addToQueue(block: Block)

Parameters

public after(doAfter: SpecFunction)

Parameters

public execute(onComplete?: () => void): any

Parameters

  • onComplete?: () => void optional

Returns

any

public expect(actual: any): any

Parameters

  • actual: any

Returns

any

public explodes()

public fail(e?: any)

Parameters

  • e?: any optional

public finish(onComplete?: () => void)

Parameters

  • onComplete?: () => void optional

public finishCallback()

public getFullName(): string

Returns

string

public getMatchersClass_(): Matchers

Returns

Matchers

public log(arguments: any): any

Parameters

  • arguments: any

Returns

any

public removeAllSpies()

public results(): NestedResults

Returns

NestedResults

public runs(func: SpecFunction): Spec

Parameters

Returns

Spec

public spyOn(obj: any, methodName: string, ignoreMethodDoesntExist: boolean): Spy

Parameters

  • obj: any
  • methodName: string
  • ignoreMethodDoesntExist: boolean

Returns

Spy

public waits(timeout: number): Spec

Parameters

  • timeout: number

Returns

Spec

public waitsFor(latchFunction: SpecFunction, timeoutMessage?: string, timeout?: number): Spec

Parameters

  • latchFunction: SpecFunction
  • timeoutMessage?: string optional
  • timeout?: number optional

Returns

Spec