API Docs for: 0.1.0

Class gabarito.Context

Class defined in: lib/gabarito.js:1477

The context class is passed to each clause when it is run, also to the before and after functions.

It provides means to run tests asynchronously through the stay, go and going methods.

gabarito.Context( )
lib/gabarito.js:1477

Index

Methods

go( [block] )
lib/gabarito.js:1589

Tells the context to resume

Parameters:
  • [block] <Function>
going( [block] )
lib/gabarito.js:1608

Returns a function that when called, tells the context to resume the current clause and also passes the parameters along to the given function.

Just a syntatic sugar to avoid another nesting level.

Parameters:
  • [block] <Function>
stay( [timeout] )
lib/gabarito.js:1563

Tells the context to wait for an async continuation.

Parameters:
  • [timeout] <Number>

    Timeout before it breaks (defaults to 10000);