Fix code style

pull/32/head
HardiReady 2018-03-30 20:28:31 +02:00
parent 29c53c03a5
commit 6d5f068860
4 changed files with 2 additions and 4 deletions

View File

@ -4,7 +4,7 @@ const config = require('../config/config');
const resourceLocation = () => { const resourceLocation = () => {
if (process.env.NODE_ENV === config.test.dredd.env) { if (process.env.NODE_ENV === config.test.dredd.env) {
return config.test.dredd.resourceLocation return config.test.dredd.resourceLocation;
} }
return config.resourceLocation; return config.resourceLocation;
}; };

View File

@ -68,7 +68,7 @@ campaigns.route('/:id')
return next(err); return next(err);
} }
WarModel.find({campaign: req.params.id}).remove().exec(); WarModel.find({campaign: req.params.id}).remove().exec();
// TODO: remove all the war logs from fs here!!!
res.locals.processed = true; res.locals.processed = true;
next(); next();
}); });

View File

@ -147,7 +147,6 @@ squads.route('/:id')
res.locals.processed = true; res.locals.processed = true;
next(err); next(err);
}); });
}); });
}) })

View File

@ -115,7 +115,6 @@ switch (process.env.NODE_ENV) {
const MongodbMemoryServer = require('mongodb-memory-server').default; const MongodbMemoryServer = require('mongodb-memory-server').default;
const mongoServer = new MongodbMemoryServer(); const mongoServer = new MongodbMemoryServer();
mongoose.Promise = Promise; mongoose.Promise = Promise;
app.resourcePath = ''
mongoServer.getConnectionString().then((mongoUri) => { mongoServer.getConnectionString().then((mongoUri) => {
mongoose.connect(mongoUri); mongoose.connect(mongoUri);