node-query/tests/base_test.js

23 lines
533 B
JavaScript
Raw Normal View History

2014-10-20 16:56:45 -04:00
"use strict";
var modules = {
helpers: require('../lib/helpers'),
driver: require('../lib/driver'),
qb: require('../lib/query-builder'),
2014-10-23 10:53:16 -04:00
'node-query': require('../lib/node-query'),
'drivers/pg': require('../lib/drivers/pg'),
'drivers/mysql': require('../lib/drivers/mysql'),
adapter: require('../lib/adapter')
2014-10-20 16:56:45 -04:00
};
module.exports = {
'Sanity check': function (test) {
test.expect(modules.length);
Object.keys(modules).forEach(function(mod) {
test.ok(modules[mod], mod + " module is sane");
});
test.done();
}
};