Updated controller logic and reworked unit testing
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
require('dotenv').config({ path: 'development.env' });
|
||||
|
||||
const mongoose = require('mongoose'); //import mongoose
|
||||
|
||||
mongoose.connect(
|
||||
process.env.MONGODB_URI,
|
||||
(err) => {
|
||||
if (err) return console.log("Error: ", err);
|
||||
console.log("MongoDB Connection -- Ready state is:", mongoose.connection.readyState);
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user