Skip to content

Commit 52325b9

Browse files
authored
Update TestDbOps.js
DB URI Change
1 parent fb20b74 commit 52325b9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/TestDbOps.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
*
44
* Adds the test data to the collection
55
*/
6-
process.env.DB_URI = "mongodb://ds059316.mlab.com:59316/acmetravel"
7-
process.env.DB_USER = "acloudfan"
8-
process.env.DB_PASSWORD = "acloudfan"
6+
// Provide the URI in the right format
7+
process.env.DB_URI = "mongodb://<user>:<password>@SERVER:PORT/DB-NAME"
8+
9+
10+
//process.env.DB_USER = "test";//
11+
//process.env.DB_PASSWORD = "test";//acloudfan"
912

1013
//Test#1 Insert the Vacation data
1114
var db = require('../db/vacations')
@@ -55,4 +58,4 @@ db.update(updateCriteria,doc,function(err, doc){
5558
} else {
5659
console.log("Successfully updated with criteria %s", updateCriteria)
5760
}
58-
})
61+
})

0 commit comments

Comments
 (0)