API Docs for: 0.1.0

Class gabarito.SpyVerifier

Class defined in: lib/gabarito.js:1119

The verifier is used to check for the arguments, return or error thrown.

gabarito.SpyVerifier( call )
lib/gabarito.js:1119
Parameters:

Index

Methods

gabarito.SpyVerifier after( anotherCall, [msg] )
lib/gabarito.js:1191

Asserts that this call was made after another call

Parameters:
gabarito.SpyVerifier args( matchers )
lib/gabarito.js:1133

Checks if the calls arguments matches with the given matchers

Parameters:
gabarito.SpyVerifier before( anotherCall, [msg] )
lib/gabarito.js:1171

Asserts that this call was made before another call

Parameters:
gabarito.SpyVerifier returning( v )
lib/gabarito.js:1265

Checks what has been returmed by the call using the matcher o a value matcher.

Parameters:
gabarito.SpyVerifier throwing( v )
lib/gabarito.js:1236

Checks what has been throw by the call using the matcher o a value matcher.

Parameters:
gabarito.SpyVerifier withThis( v )
lib/gabarito.js:1211

Checks what has been throw by the call using the matcher o a value matcher.

Parameters: