This is the code I want to test:
mongoose .connect(dbUrl, { useNewUrlParser: true }) .then(({ connection }) => {