mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-28 01:49:53 -04:00
We use nodes require so we have to follow nodes module conventions for test suites. * As a result we need to inject the requirejs loader as well as the exports object. * Also we need to move the requirejs setup logic into it's own module for reuse. * The test modules add tests to the exports object for our test runner.
4 lines
100 B
JavaScript
4 lines
100 B
JavaScript
require('./ref-tests.js').init(exports);
|
|
|
|
if (module == require.main) require('test').run(exports);
|