Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
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
nodespec.abandon = function abandon()
Forget this nodespec function
ExampleGroup.prototype.after = function(options,
block)
Add an after hook to be run after all specs in the group
nodespec.after = function after(block)
Add an after hook to be run after all specs in the suite
ExampleGroup.prototype.before = function(options,
block)
Add a before hook to be run before all specs in the group
nodespec.before = function before(block)
Add a before hook to be run before all specs in the suite
ExampleGroup.prototype.context = ExampleGroup.prototype.describe
An alias for ExampleGroup.describe
ExampleGroup.prototype.describe = function(description,
options,
dfn)
Create a sub-ExampleGroup to describe some behaviour
nodespec.describe = function describe(description,
options,
definition)
Create an ExampleGroup to describe some behaviour
ExampleGroup.prototype.example = function(description,
options,
block)
Define an Example to be executed against this group
Example.prototype.exec = function(emitter,
callback/*(err, result)*/)
Execute this example
ExampleGroup.prototype.exec = function(emitter,
callback/*(err, result)*/)
Execute all of the children of this group in sequence.
nodespec.exec = function exec()
Run all specs currently defined for this suite
nodespec.mockWith = function mockWith(lib)
Load a pre-defined mocking library
function nodespec(name,
deps)
Create another top-level nodespec container, keyed by name
nodespec.registerFormatter = function registerFormatter(name,
file,
set_default)
Add an additional formatter
nodespec.require = function require(target)
Require nodespec test definition files without executing them
ExampleGroup.prototype.subject = function(name,
block)
Define a “subject” that is lazily evaluated and made available to specs
Example.prototype.timeout_after = function(seconds)
Modify the execution timeout
Example.prototype.toString = function()
Useful string representation of the example
Close