Unified mongo and email style

This commit is contained in:
Tankred Hase
2016-06-08 14:01:30 +02:00
parent 56162a01d9
commit b5fb5331fc
7 changed files with 17 additions and 32 deletions

View File

@@ -23,8 +23,8 @@ describe('Koa App (HTTP Server) Integration Tests', function() {
before(function *() {
publicKeyArmored = fs.readFileSync(__dirname + '/../key1.asc', 'utf8');
mongo = new Mongo(config.mongo);
yield mongo.connect();
mongo = new Mongo();
yield mongo.init(config.mongo);
sendEmailStub = sinon.stub().returns(Promise.resolve({ response:'250' }));
sendEmailStub.withArgs(sinon.match(recipient => {