interfaces/common

Methods

(inner) after(name, fn)

Source:

Execute after running tests.

Parameters:
Name Type Description
name string
fn function

(inner) afterEach(name, fn)

Source:

Execute after each test case.

Parameters:
Name Type Description
name string
fn function

(inner) before(name, fn)

Source:

Execute before running tests.

Parameters:
Name Type Description
name string
fn function

(inner) beforeEach(name, fn)

Source:

Execute before each test case.

Parameters:
Name Type Description
name string
fn function

(inner) runWithSuite(suite) → {function}

Source:

This is only present if flag --delay is passed into Mocha. It triggers
root suite execution.

Parameters:
Name Type Description
suite Suite

The root suite.

Returns:

A function which runs the root suite

Type
function