Skip to content

Commit 6ed47ab

Browse files
author
Christiaan Maks
authored
Update index.js
1 parent 62c763f commit 6ed47ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ const mongoUri = `${config.mongo.host}:${config.mongo.port}`;
2020
if (process.env.NODE_ENV === 'test') {
2121
const mockgoose = new Mockgoose(mongoose);
2222

23-
mockgoose.prepareStorage().then(function () {
23+
mockgoose.prepareStorage().then(() => {
2424
mongoose.connect('mongodb://example.com/test-db');
25-
})
25+
});
2626
} else {
2727
mongoose.connect(mongoUri, { server: { socketOptions: { keepAlive: 1 } } });
2828
}

0 commit comments

Comments
 (0)