Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new Spec(env: Env, suite: Suite, description: string): any
  • Parameters

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

    Returns any

Properties

afterCallbacks

afterCallbacks: SpecFunction[]

description

description: string

env

env: Env

id

id: number

matchersClass

matchersClass: Matchers<any>

queue

queue: Queue

results_

results_: NestedResults

spies_

spies_: Spy[]

suite

suite: Suite

throwOnExpectationFailure

throwOnExpectationFailure: boolean

Methods

addBeforesAndAftersToQueue

  • addBeforesAndAftersToQueue(): void
  • Returns void

addMatcherResult

  • addMatcherResult(result: Result): void
  • Parameters

    Returns void

addMatchers

  • Parameters

    Returns void

addToQueue

  • addToQueue(block: Block): void
  • Parameters

    Returns void

after

  • Parameters

    Returns void

execute

  • execute(onComplete?: function, enabled?: boolean): any
  • Parameters

    • Optional onComplete: function
        • (): void
        • Returns void

    • Optional enabled: boolean

    Returns any

expect

  • expect(actual: any): any
  • Parameters

    • actual: any

    Returns any

explodes

  • explodes(): void
  • Returns void

fail

  • fail(e?: any): void
  • Parameters

    • Optional e: any

    Returns void

finish

  • finish(onComplete?: function): void
  • Parameters

    • Optional onComplete: function
        • (): void
        • Returns void

    Returns void

finishCallback

  • finishCallback(): void
  • Returns void

getFullName

  • getFullName(): string
  • Returns string

getMatchersClass_

  • Returns Matchers<any>

getResult

  • getResult(): any
  • Returns any

log

  • log(arguments: any): any
  • Parameters

    • arguments: any

    Returns any

removeAllSpies

  • removeAllSpies(): void
  • Returns void

results

  • Returns NestedResults

runs

  • Parameters

    Returns Spec

spyOn

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

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

    Returns Spy

spyOnAllFunctions

  • spyOnAllFunctions(object: any): Spy
  • Parameters

    • object: any

    Returns Spy

spyOnProperty

  • spyOnProperty(object: any, property: string, accessType?: "get" | "set"): Spy
  • Parameters

    • object: any
    • property: string
    • Optional accessType: "get" | "set"

    Returns Spy

waits

  • waits(timeout: number): Spec
  • Parameters

    • timeout: number

    Returns Spec

waitsFor

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

    • latchFunction: SpecFunction
    • Optional timeoutMessage: string
    • Optional timeout: number

    Returns Spec

Generated using TypeDoc