1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-13 18:06:03 +00:00
Files
homebrewery/test/test.init.js
Scott Tolksdorf 25e0a1607a whatever
2017-01-22 12:45:46 -05:00

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();
});
},
};