We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62c763f commit 6ed47abCopy full SHA for 6ed47ab
index.js
@@ -20,9 +20,9 @@ const mongoUri = `${config.mongo.host}:${config.mongo.port}`;
20
if (process.env.NODE_ENV === 'test') {
21
const mockgoose = new Mockgoose(mongoose);
22
23
- mockgoose.prepareStorage().then(function () {
+ mockgoose.prepareStorage().then(() => {
24
mongoose.connect('mongodb://example.com/test-db');
25
- })
+ });
26
} else {
27
mongoose.connect(mongoUri, { server: { socketOptions: { keepAlive: 1 } } });
28
}
0 commit comments