mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-20 21:31:34 +00:00
Split off app into own file
This commit is contained in:
@@ -1,23 +1,9 @@
|
||||
require('app-module-path').addPath('./server');
|
||||
|
||||
|
||||
// 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' });
|
||||
|
||||
const should = require('chai').use(require('chai-as-promised')).should();
|
||||
|
||||
const log = require('loglevel');
|
||||
log.setLevel('trace');
|
||||
|
||||
module.exports = {
|
||||
config: config,
|
||||
should: should,
|
||||
clearCache: () => {
|
||||
return new Promise((resolve, reject) => {
|
||||
return resolve();
|
||||
});
|
||||
},
|
||||
should: should
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user