Jeremy Wall (zaphar) 9125607faf Split out the unittests into separate files.
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.
2013-11-16 15:26:49 -05:00

4 lines
100 B
JavaScript

require('./ref-tests.js').init(exports);
if (module == require.main) require('test').run(exports);