Interface Env

Index

Properties

Methods

Properties

public clearInterval: void

public clearTimeout: void

public currentSpec: Spec

public matchersClass: Matchers

public setInterval: any

public setTimeout: any

public updateInterval: number

Methods

public addEqualityTester(equalityTester: (a: any, b: any, env: jasmine.Env, mismatchKeys: string[], mismatchValues: string[]) => boolean)

Parameters

  • equalityTester: (a: any, b: any, env: jasmine.Env, mismatchKeys: string[], mismatchValues: string[]) => boolean

public addReporter(reporter: Reporter)

Parameters

public afterEach(afterEachFunction: () => void)

Parameters

  • afterEachFunction: () => void

public beforeEach(beforeEachFunction: () => void)

Parameters

  • beforeEachFunction: () => void

public compareObjects_(a: any, b: any, mismatchKeys: Array<string>, mismatchValues: Array<string>): boolean

Parameters

  • a: any
  • b: any
  • mismatchKeys: Array<string>
  • mismatchValues: Array<string>

Returns

boolean

public compareRegExps_(a: RegExp, b: RegExp, mismatchKeys: Array<string>, mismatchValues: Array<string>): boolean

Parameters

  • a: RegExp
  • b: RegExp
  • mismatchKeys: Array<string>
  • mismatchValues: Array<string>

Returns

boolean

public contains_(haystack: any, needle: any): boolean

Parameters

  • haystack: any
  • needle: any

Returns

boolean

public currentRunner(): Runner

Returns

Runner

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

Parameters

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

Returns

Suite

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

Parameters

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

Returns

Suite

public equals_(a: any, b: any, mismatchKeys: Array<string>, mismatchValues: Array<string>): boolean

Parameters

  • a: any
  • b: any
  • mismatchKeys: Array<string>
  • mismatchValues: Array<string>

Returns

boolean

public execute()

public iit(description: string, func: () => void): Spec

Parameters

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

Returns

Spec

public it(description: string, func: () => void): Spec

Parameters

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

Returns

Spec

public nextSpecId(): number

Returns

number

public specFilter(spec: Spec): boolean

Parameters

Returns

boolean

public version(): any

Returns

any

public versionString(): string

Returns

string

public xdescribe(desc: string, specDefinitions: () => void): XSuite

Parameters

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

Returns

XSuite

public xit(desc: string, func: () => void): XSpec

Parameters

  • desc: string
  • func: () => void

Returns

XSpec