dynamicbible/test/require-injector.js
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

11 lines
155 B
JavaScript

var requirejs = require('requirejs');
requirejs.config({
baseUrl: "js/",
nodeRequire: require
});
module.exports = {
requirejs: requirejs
};