Fix code style
parent
29c53c03a5
commit
6d5f068860
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
|
@ -147,7 +147,6 @@ squads.route('/:id')
|
||||||
res.locals.processed = true;
|
res.locals.processed = true;
|
||||||
next(err);
|
next(err);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue