1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-19 14:21:28 +00:00

Triyng to setup api tests

This commit is contained in:
Scott Tolksdorf
2017-01-01 17:06:44 -08:00
parent a0bc4fddf8
commit 537a75b2ab
4 changed files with 43 additions and 10 deletions

View File

@@ -1,3 +1,4 @@
require('app-module-path').addPath('./server');
// initialize config
const config = require('nconf')
@@ -7,11 +8,9 @@ const config = require('nconf')
.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,