diff options
Diffstat (limited to 'mocha_test/support/async.js')
-rw-r--r-- | mocha_test/support/async.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mocha_test/support/async.js b/mocha_test/support/async.js new file mode 100644 index 0000000..7bb530a --- /dev/null +++ b/mocha_test/support/async.js @@ -0,0 +1,9 @@ +// Resolve the async version we currently want to test +console.log(process.env.ASYNC_TEST); +if (typeof process === 'object' && process.env.ASYNC_TEST === 'build') { + console.log('testing built modules'); + module.exports = require('../..'); +} else { + console.log('testing source'); + module.exports = require('../../lib'); +} |