Interface SinonAssert

Index

Properties

Methods

Properties

public fail: (message?: string) => void

public failException: string

public pass: (assertion: any) => void

Methods

public alwaysCalledOn(spy: SinonSpy, obj: any)

Parameters

public alwaysCalledWith(spy: SinonSpy, args?: Array<any>)

Parameters

  • spy: SinonSpy
  • args?: Array<any> optional

public alwaysCalledWithExactly(spy: SinonSpy, args?: Array<any>)

Parameters

  • spy: SinonSpy
  • args?: Array<any> optional

public alwaysCalledWithMatch(spy: SinonSpy, args?: SinonMatcher[])

Parameters

public alwaysThrew(spy: SinonSpy)

Parameters

public alwaysThrew(spy: SinonSpy, exception: string)

Parameters

public alwaysThrew(spy: SinonSpy, exception: any)

Parameters

public callCount(spy: SinonSpy, count: number)

Parameters

public callOrder(spies?: SinonSpy[])

Parameters

public called(spy: SinonSpy)

Parameters

public calledOn(spy: SinonSpy, obj: any)

Parameters

public calledOnce(spy: SinonSpy)

Parameters

public calledThrice(spy: SinonSpy)

Parameters

public calledTwice(spy: SinonSpy)

Parameters

public calledWith(spy: SinonSpy, args?: Array<any>)

Parameters

  • spy: SinonSpy
  • args?: Array<any> optional

public calledWithExactly(spy: SinonSpy, args?: Array<any>)

Parameters

  • spy: SinonSpy
  • args?: Array<any> optional

public calledWithMatch(spy: SinonSpy, args?: SinonMatcher[])

Parameters

public expose(obj: any, options?: SinonExposeOptions)

Parameters

public neverCalledWith(spy: SinonSpy, args?: Array<any>)

Parameters

  • spy: SinonSpy
  • args?: Array<any> optional

public neverCalledWithMatch(spy: SinonSpy, args?: SinonMatcher[])

Parameters

public notCalled(spy: SinonSpy)

Parameters

public threw(spy: SinonSpy)

Parameters

public threw(spy: SinonSpy, exception: string)

Parameters

public threw(spy: SinonSpy, exception: any)

Parameters