load.js 583 B

1234567891011121314
  1. // Just verify that all of the packages can be loaded without errors.
  2. var fs = require('fs'), path = require('path');
  3. // if running on older node, ensure that es6-shim is loaded first
  4. if (/^v0.10/.test(process.version)) { require('es6-shim'); }
  5. describe("Package load tests", function() {
  6. fs.readdirSync(path.join(__dirname, '..')).forEach(function(file) {
  7. if (/^_/.test(file) || !/\.js$/.test(file)) { return; }
  8. var pkgname = file.replace(/\.js$/, '');
  9. it(pkgname+' should load', function() {
  10. require('../'+pkgname);
  11. });
  12. });
  13. });