diff --git a/nodeJS/testing_express/testing_database_operations.md b/nodeJS/testing_express/testing_database_operations.md index 071f4b033f8..c1b33f02424 100644 --- a/nodeJS/testing_express/testing_database_operations.md +++ b/nodeJS/testing_express/testing_database_operations.md @@ -28,7 +28,7 @@ const mongoose = require("mongoose"); const mongoDb = `YOUR MONGO URL`; -mongoose.connect(mongoDb, { useNewUrlParser: true }); +mongoose.connect(mongoDb); const db = mongoose.connection; db.on("error", console.error.bind(console, "mongo connection error")); ```