Module test

Runs tests as defined in CommonJS Unit Testing.

Functions


run (tests)

Runs the test function in the module provided. If the module doesn't export function, recursively looks inside the exported objects and runs them as tests as well. See 'test/all.js' for an example.

Parameters

Object tests The module containing the tests.