1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/packages/unleash-api/test/e2e/database-config.js

15 lines
333 B
JavaScript
Raw Normal View History

'use strict';
2016-10-26 10:43:11 +02:00
2016-07-02 11:54:50 +02:00
function getDatabaseUri () {
if (process.env.TEST_DATABASE_URL) {
return process.env.TEST_DATABASE_URL;
} else {
console.log('Using default unleash_test database');
return 'postgres://unleash_user:passord@localhost:5432/unleash_test';
}
}
2016-07-02 11:54:50 +02:00
module.exports = {
2016-06-18 21:55:46 +02:00
getDatabaseUri,
};