1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/test/e2e/helpers/database-config.js

13 lines
286 B
JavaScript
Raw Normal View History

'use strict';
2016-10-26 10:43:11 +02:00
const parseDbUrl = require('parse-database-url');
2016-07-02 11:54:50 +02:00
module.exports = {
getDb: () => {
const url =
process.env.TEST_DATABASE_URL ||
'postgres://unleash_user:passord@localhost:5432/unleash_test';
return parseDbUrl(url);
},
};