DefinitelyTyped

Index

Variables

Dynamic modules

Modules

Interfaces

Functions

Variables

$: JQueryStatic

jQuery: JQueryStatic

Functions

afterEach(action: () => void)

Parameters

  • action: () => void

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

Parameters

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

appendLoadFixtures(uls?: Array<string>): any

Parameters

  • uls?: Array<string> optional

Returns

any

appendLoadStyleFixtures(uls?: Array<string>): any

Parameters

  • uls?: Array<string> optional

Returns

any

appendSetFixtures(html: string): any

Parameters

  • html: string

Returns

any

appendSetStyleFixtures(html: string): any

Parameters

  • html: string

Returns

any

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

getJSONFixture(url: string): any

Parameters

  • url: string

Returns

any

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

loadFixtures(uls?: Array<string>): any

Parameters

  • uls?: Array<string> optional

Returns

any

loadJSONFixtures(uls?: Array<string>): JSONFixtures

Parameters

  • uls?: Array<string> optional

Returns

JSONFixtures

loadStyleFixtures(uls?: Array<string>): any

Parameters

  • uls?: Array<string> optional

Returns

any

pending()

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

preloadFixtures(uls?: Array<string>): any

Parameters

  • uls?: Array<string> optional

Returns

any

preloadStyleFixtures(uls?: Array<string>): any

Parameters

  • uls?: Array<string> optional

Returns

any

readFixtures(uls?: Array<string>): string

Parameters

  • uls?: Array<string> optional

Returns

string

runs(asyncMethod: Function)

Parameters

  • asyncMethod: Function

sandbox(attributes?: any): string

Parameters

  • attributes?: any optional

Returns

string

setFixtures(html: string): string

Parameters

  • html: string

Returns

string

setStyleFixtures(html: string): any

Parameters

  • html: string

Returns

any

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

Parameters

  • object: any
  • method: string

Returns

Spy

spyOnEvent(selector: string, eventName: string): JQueryEventSpy

Parameters

  • selector: string
  • eventName: string

Returns

JQueryEventSpy

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