1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
var assert = require('assert');
var builtinModulesStatic = require('./static');
var builtinModules = require('.');
describe('main', function() {
it('should not throw', function() {
console.log('Builtin modules:', builtinModules);
assert.doesNotThrow(() => {
for (const x of builtinModules) {
require(x);
}
});
});
it('should include fs', function() {
assert(builtinModules.includes('fs'));
});
it('should be an array', function() {
assert(Array.isArray(builtinModulesStatic));
});
});
|