mirror of
https://github.com/Hopiu/webapi-eca.git
synced 2026-03-19 07:20:25 +00:00
31 lines
778 B
JavaScript
31 lines
778 B
JavaScript
// Generated by CoffeeScript 1.6.3
|
|
(function() {
|
|
exports.testRequire = function(test) {
|
|
var conf;
|
|
conf = require('../js-coffee/config');
|
|
conf({
|
|
logType: 2
|
|
});
|
|
test.ok(conf.isReady(), 'File exists');
|
|
conf({
|
|
relPath: 'wrongpath'
|
|
});
|
|
test.strictEqual(conf.isReady(), false);
|
|
return test.done();
|
|
};
|
|
|
|
exports.testParametersReady = function(test) {
|
|
var conf;
|
|
conf = require('../js-coffee/config');
|
|
conf({
|
|
logType: 2
|
|
});
|
|
console.log(conf);
|
|
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');
|
|
return test.done();
|
|
};
|
|
|
|
}).call(this);
|