Cleanup app/init/koa-middlewares

This commit is contained in:
Tankred Hase
2017-08-17 19:16:49 +08:00
parent 8c76281666
commit 95ff2d9247
8 changed files with 178 additions and 151 deletions

View File

@@ -25,6 +25,8 @@ describe('Koa App (HTTP Server) Integration Tests', function() {
before(async () => {
sandbox = sinon.sandbox.create();
sandbox.stub(log);
publicKeyArmored = fs.readFileSync(`${__dirname}/../key1.asc`, 'utf8');
mongo = new Mongo();
await mongo.init(config.mongo);
@@ -39,9 +41,6 @@ describe('Koa App (HTTP Server) Integration Tests', function() {
use() {}
});
sandbox.stub(log);
global.testing = true;
const init = require('../../src/app');
app = await init();
});