Class gabarito.SpyVerifier
Class defined in:lib/gabarito.js:1119
The verifier is used to check for the arguments, return or error thrown.
Index
Methods
gabarito.SpyVerifier
after( anotherCall, [msg] )
lib/gabarito.js:1191
Asserts that this call was made after another call
Parameters:-
anotherCall<gabarito.SpyVerifier> -
[msg]<String>
Returns: <gabarito.SpyVerifier>
gabarito.SpyVerifier
args( matchers )
lib/gabarito.js:1133
Checks if the calls arguments matches with the given matchers
Parameters:-
matchers<gabarito.Matcher | Mixed> (*..n)
Returns: <gabarito.SpyVerifier>
gabarito.SpyVerifier
before( anotherCall, [msg] )
lib/gabarito.js:1171
Asserts that this call was made before another call
Parameters:-
anotherCall<gabarito.SpyVerifier> -
[msg]<String>
Returns: <gabarito.SpyVerifier>
gabarito.SpyVerifier
returning( v )
lib/gabarito.js:1265
Checks what has been returmed by the call using the matcher o a value matcher.
Parameters:-
v<gabarito.Matcher | Mixed>
Returns: <gabarito.SpyVerifier>
gabarito.SpyVerifier
throwing( v )
lib/gabarito.js:1236
Checks what has been throw by the call using the matcher o a value matcher.
Parameters:-
v<gabarito.Matcher | Mixed>
Returns: <gabarito.SpyVerifier>
gabarito.SpyVerifier
withThis( v )
lib/gabarito.js:1211
Checks what has been throw by the call using the matcher o a value matcher.
Parameters:-
v<gabarito.Matcher | Mixed>
Returns: <gabarito.SpyVerifier>