mirror of
https://github.com/Hopiu/webapi-eca.git
synced 2026-03-16 22:10:31 +00:00
22 lines
623 B
JavaScript
22 lines
623 B
JavaScript
// Generated by CoffeeScript 1.6.3
|
|
(function() {
|
|
exports.testRequire = function(test) {
|
|
var db;
|
|
db = require('../js-coffee/db_interface');
|
|
test.ok(db, 'DB interface loaded');
|
|
db({
|
|
logType: 2
|
|
});
|
|
test.ok(conf.isReady(), 'File exists');
|
|
test.ok(conf.getHttpPort(), 'HTTP port exists');
|
|
test.ok(conf.getDBPort(), 'DB port exists');
|
|
test.ok(conf.getCryptoKey(), 'Crypto key exists');
|
|
test.ok(conf.getSessionSecret(), 'Session Secret exists');
|
|
conf({
|
|
relPath: 'wrongpath'
|
|
});
|
|
test.strictEqual(conf.isReady(), false);
|
|
return test.done();
|
|
};
|
|
|
|
}).call(this);
|