DefinitelyTyped

Index

Modules

Functions

Functions

afterEach(action: () => void)

Parameters

  • action: () => void

afterEach(action: (done: () => void) => void)

Parameters

  • action: (done: () => void) => void

beforeEach(action: () => void)

Parameters

  • action: () => void

beforeEach(action: (done: () => void) => void)

Parameters

  • action: (done: () => void) => void

ddescribe(description: string, specDefinitions: () => void)

Parameters

  • description: string
  • specDefinitions: () => void

describe(description: string, specDefinitions: () => void)

Parameters

  • description: string
  • specDefinitions: () => void

expect(spy: Function): Matchers

Parameters

  • spy: Function

Returns

Matchers

expect(actual: any): Matchers

Parameters

  • actual: any

Returns

Matchers

iit(expectation: string, assertion?: () => void)

Parameters

  • expectation: string
  • assertion?: () => void optional

iit(expectation: string, assertion?: (done: () => void) => void)

Parameters

  • expectation: string
  • assertion?: (done: () => void) => void optional

it(expectation: string, assertion?: () => void)

Parameters

  • expectation: string
  • assertion?: () => void optional

it(expectation: string, assertion?: (done: () => void) => void)

Parameters

  • expectation: string
  • assertion?: (done: () => void) => void optional

pending()

If you call the function pending anywhere in the spec body, no matter the expectations, the spec will be marked pending.

runs(asyncMethod: Function)

Parameters

  • asyncMethod: Function

spyOn(object: any, method: string): Spy

Parameters

  • object: any
  • method: string

Returns

Spy

waits(timeout?: number)

Parameters

  • timeout?: number optional

waitsFor(latchMethod: () => boolean, failureMessage?: string, timeout?: number)

Parameters

  • latchMethod: () => boolean
  • failureMessage?: string optional
  • timeout?: number optional

xdescribe(description: string, specDefinitions: () => void)

Parameters

  • description: string
  • specDefinitions: () => void

xit(expectation: string, assertion?: () => void)

Parameters

  • expectation: string
  • assertion?: () => void optional

xit(expectation: string, assertion?: (done: () => void) => void)

Parameters

  • expectation: string
  • assertion?: (done: () => void) => void optional