A | |
abandon, Nodespec | |
after | |
B | |
before | |
C | |
context, ExampleGroup | |
D | |
describe | |
E | |
example, ExampleGroup | |
exec | |
M | |
mockWith, Nodespec | |
N | |
nodespec | |
R | |
registerFormatter, Nodespec | |
require, Nodespec | |
S | |
subject, ExampleGroup | |
T | |
timeout_after, Example | |
toString, Example |
Forget this nodespec function
nodespec.abandon = function abandon()
Add an after hook to be run after all specs in the group
ExampleGroup.prototype.after = function( options, block )
Add an after hook to be run after all specs in the suite
nodespec.after = function after( block )
Add a before hook to be run before all specs in the group
ExampleGroup.prototype.before = function( options, block )
Add a before hook to be run before all specs in the suite
nodespec.before = function before( block )
An alias for ExampleGroup.describe
ExampleGroup.prototype.context = ExampleGroup.prototype.describe
Create a sub-ExampleGroup to describe some behaviour
ExampleGroup.prototype.describe = function( description, options, dfn )
Create an ExampleGroup to describe some behaviour
nodespec.describe = function describe( description, options, definition )
Define an Example to be executed against this group
ExampleGroup.prototype.example = function( description, options, block )
Execute this example
Example.prototype.exec = function( emitter, callback/*(err, result)*/ )
Execute all of the children of this group in sequence.
ExampleGroup.prototype.exec = function( emitter, callback/*(err, result)*/ )
Run all specs currently defined for this suite
nodespec.exec = function exec()
Load a pre-defined mocking library
nodespec.mockWith = function mockWith( lib )
Create another top-level nodespec container, keyed by name
function nodespec( name, deps )
Add an additional formatter
nodespec.registerFormatter = function registerFormatter( name, file, set_default )
Require nodespec test definition files without executing them
nodespec.require = function require( target )
Define a “subject” that is lazily evaluated and made available to specs
ExampleGroup.prototype.subject = function( name, block )
Modify the execution timeout
Example.prototype.timeout_after = function( seconds )
Useful string representation of the example
Example.prototype.toString = function()