Interface SinonSpyCallApi

Hierarchy

Index

Properties

Methods

Properties

public args: Array<any>

public exception: any

public returnValue: any

public thisValue: any

Methods

public callArg(pos: number)

Parameters

  • pos: number

public callArgOn(pos: number, obj: any, args?: Array<any>)

Parameters

  • pos: number
  • obj: any
  • args?: Array<any> optional

public callArgOnWith(pos: number, obj: any, args?: Array<any>)

Parameters

  • pos: number
  • obj: any
  • args?: Array<any> optional

public callArgWith(pos: number, args?: Array<any>)

Parameters

  • pos: number
  • args?: Array<any> optional

public calledOn(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public calledWith(args?: Array<any>): boolean

Parameters

  • args?: Array<any> optional

Returns

boolean

public calledWithExactly(args?: Array<any>): boolean

Parameters

  • args?: Array<any> optional

Returns

boolean

public calledWithMatch(args?: SinonMatcher[]): boolean

Parameters

Returns

boolean

public notCalledWith(args?: Array<any>): boolean

Parameters

  • args?: Array<any> optional

Returns

boolean

public notCalledWithMatch(args?: SinonMatcher[]): boolean

Parameters

Returns

boolean

public returned(value: any): boolean

Parameters

  • value: any

Returns

boolean

public threw(): boolean

Returns

boolean

public threw(type: string): boolean

Parameters

  • type: string

Returns

boolean

public threw(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public yield(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public yieldOn(obj: any, args?: Array<any>)

Parameters

  • obj: any
  • args?: Array<any> optional

public yieldTo(property: string, args?: Array<any>)

Parameters

  • property: string
  • args?: Array<any> optional

public yieldToOn(property: string, obj: any, args?: Array<any>)

Parameters

  • property: string
  • obj: any
  • args?: Array<any> optional