1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/packages/unleash-api/test/databaseConfig.js
2020-02-20 08:30:27 +01:00

12 lines
250 B
JavaScript

'use strict';
function getDatabaseUri() {
if (!process.env.TEST_DATABASE_URL) {
throw new Error('please set TEST_DATABASE_URL');
} else {
return process.env.TEST_DATABASE_URL;
}
}
module.exports = {
getDatabaseUri,
};