mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-13 18:06:03 +00:00
24 lines
517 B
JavaScript
24 lines
517 B
JavaScript
|
|
// initialize config
|
|
const config = require('nconf')
|
|
.argv()
|
|
.env({ lowerCase: true })
|
|
.file('testing', { file: `./config/testing.json` })
|
|
.file('environment', { file: `../config/${process.env.NODE_ENV}.json` })
|
|
.file('defaults', { file: '../config/default.json' });
|
|
|
|
// other libs
|
|
const should = require('chai').use(require('chai-as-promised')).should();
|
|
|
|
|
|
|
|
module.exports = {
|
|
config: config,
|
|
should: should,
|
|
clearCache: () => {
|
|
return new Promise((resolve, reject) => {
|
|
return resolve();
|
|
});
|
|
},
|
|
};
|