1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/test/e2e/util/database-config.js
2020-02-20 08:30:37 +01:00

15 lines
333 B
JavaScript

'use strict';
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';
}
}
module.exports = {
getDatabaseUri,
};