CyTube/integration_test/testutil/config.js

15 lines
404 B
JavaScript
Raw Normal View History

const loadFromToml = require('../../lib/configuration/configloader').loadFromToml;
2017-06-06 05:45:14 +00:00
const path = require('path');
class IntegrationTestConfig {
constructor(config) {
this.config = config;
}
get knexConfig() {
return this.config.database;
}
}
exports.testConfig = loadFromToml(IntegrationTestConfig, path.resolve(__dirname, '..', '..', 'conf', 'integration-test.toml'));