Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
SinonAssert
Interface SinonAssert
Index
Properties
fail
failException
pass
Methods
alwaysCalledOn
alwaysCalledWith
alwaysCalledWithExactly
alwaysCalledWithMatch
alwaysThrew
callCount
callOrder
called
calledOn
calledOnce
calledThrice
calledTwice
calledWith
calledWithExactly
calledWithMatch
expose
neverCalledWith
neverCalledWithMatch
notCalled
threw
Properties
public
fail
:
(message?: string) => void
public
failException
:
string
public
pass
:
(assertion: any) => void
Methods
public
alwaysCalledOn
(
spy
:
SinonSpy
, obj
:
any
)
Parameters
spy:
SinonSpy
obj:
any
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
spy:
SinonSpy
args?:
SinonMatcher
[]
optional
public
alwaysThrew
(
spy
:
SinonSpy
)
Parameters
spy:
SinonSpy
public
alwaysThrew
(
spy
:
SinonSpy
, exception
:
string
)
Parameters
spy:
SinonSpy
exception:
string
public
alwaysThrew
(
spy
:
SinonSpy
, exception
:
any
)
Parameters
spy:
SinonSpy
exception:
any
public
callCount
(
spy
:
SinonSpy
, count
:
number
)
Parameters
spy:
SinonSpy
count:
number
public
callOrder
(
spies
?:
SinonSpy
[]
)
Parameters
spies?:
SinonSpy
[]
optional
public
called
(
spy
:
SinonSpy
)
Parameters
spy:
SinonSpy
public
calledOn
(
spy
:
SinonSpy
, obj
:
any
)
Parameters
spy:
SinonSpy
obj:
any
public
calledOnce
(
spy
:
SinonSpy
)
Parameters
spy:
SinonSpy
public
calledThrice
(
spy
:
SinonSpy
)
Parameters
spy:
SinonSpy
public
calledTwice
(
spy
:
SinonSpy
)
Parameters
spy:
SinonSpy
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
spy:
SinonSpy
args?:
SinonMatcher
[]
optional
public
expose
(
obj
:
any
, options
?:
SinonExposeOptions
)
Parameters
obj:
any
options?:
SinonExposeOptions
optional
public
neverCalledWith
(
spy
:
SinonSpy
, args
?:
Array<any>
)
Parameters
spy:
SinonSpy
args?:
Array<any>
optional
public
neverCalledWithMatch
(
spy
:
SinonSpy
, args
?:
SinonMatcher
[]
)
Parameters
spy:
SinonSpy
args?:
SinonMatcher
[]
optional
public
notCalled
(
spy
:
SinonSpy
)
Parameters
spy:
SinonSpy
public
threw
(
spy
:
SinonSpy
)
Parameters
spy:
SinonSpy
public
threw
(
spy
:
SinonSpy
, exception
:
string
)
Parameters
spy:
SinonSpy
exception:
string
public
threw
(
spy
:
SinonSpy
, exception
:
any
)
Parameters
spy:
SinonSpy
exception:
any
Globals
sinon