Options
All
  • Public
  • Public/Protected
  • All
Menu

Module jasmine

Index

Type aliases

CustomEqualityTester

CustomEqualityTester: (first: any, second: any) => boolean

Type declaration

    • (first: any, second: any): boolean
    • Parameters

      • first: any
      • second: any

      Returns boolean

CustomMatcherFactory

CustomMatcherFactory: (util: MatchersUtil, customEqualityTesters: CustomEqualityTester[]) => CustomMatcher

Type declaration

Variables

Let DEFAULT_TIMEOUT_INTERVAL

DEFAULT_TIMEOUT_INTERVAL: number

Functions

addCustomEqualityTester

  • Parameters

    Returns void

addMatchers

  • Parameters

    Returns void

any

  • any(aclass: any): Any
  • Parameters

    • aclass: any

    Returns Any

anything

  • anything(): Any
  • Returns Any

arrayContaining

  • Parameters

    • sample: any[]

    Returns ArrayContaining

clock

  • Returns Clock

createSpy

  • createSpy(name?: undefined | string, originalFn?: undefined | ((...args: any[]) => any)): Spy
  • Parameters

    • Optional name: undefined | string
    • Optional originalFn: undefined | ((...args: any[]) => any)

    Returns Spy

createSpyObj

  • createSpyObj(baseName: string, methodNames: any[]): any
  • createSpyObj<T>(baseName: string, methodNames: any[]): T
  • Parameters

    • baseName: string
    • methodNames: any[]

    Returns any

  • Type parameters

    • T

    Parameters

    • baseName: string
    • methodNames: any[]

    Returns T

objectContaining

  • Parameters

    • sample: any

    Returns ObjectContaining

pp

  • pp(value: any): string
  • Parameters

    • value: any

    Returns string

stringMatching

  • stringMatching(value: string | RegExp): Any
  • Parameters

    Returns Any