Interface SinonMatch

Index

Call signatures

Properties

Methods

Call signatures

(value: number): SinonMatcher

Parameters

  • value: number

Returns

SinonMatcher

(value: string): SinonMatcher

Parameters

  • value: string

Returns

SinonMatcher

(expr: RegExp): SinonMatcher

Parameters

  • expr: RegExp

Returns

SinonMatcher

(obj: any): SinonMatcher

Parameters

  • obj: any

Returns

SinonMatcher

(callback: (value: any) => boolean): SinonMatcher

Parameters

  • callback: (value: any) => boolean

Returns

SinonMatcher

Properties

public any: SinonMatcher

public array: SinonMatcher

public bool: SinonMatcher

public date: SinonMatcher

public defined: SinonMatcher

public falsy: SinonMatcher

public func: SinonMatcher

public number: SinonMatcher

public object: SinonMatcher

public regexp: SinonMatcher

public string: SinonMatcher

public truthy: SinonMatcher

Methods

public has(property: string, expect?: any): SinonMatcher

Parameters

  • property: string
  • expect?: any optional

Returns

SinonMatcher

public hasOwn(property: string, expect?: any): SinonMatcher

Parameters

  • property: string
  • expect?: any optional

Returns

SinonMatcher

public instanceOf(type: any): SinonMatcher

Parameters

  • type: any

Returns

SinonMatcher

public same(obj: any): SinonMatcher

Parameters

  • obj: any

Returns

SinonMatcher

public typeOf(type: string): SinonMatcher

Parameters

  • type: string

Returns

SinonMatcher