()
| 10 | |
| 11 | // Find the appropriate database to connect to, default to localhost if not found. |
| 12 | var connect = function() { |
| 13 | mongoose.connect(secrets.db, function(err, res) { |
| 14 | if(err) { |
| 15 | console.log('Error connecting to: ' + secrets.db + '. ' + err); |
| 16 | }else { |
| 17 | console.log('Succeeded connected to: ' + secrets.db); |
| 18 | } |
| 19 | }); |
| 20 | }; |
| 21 | connect(); |
| 22 | |
| 23 | mongoose.connection.on('error', console.log); |
no outgoing calls
no test coverage detected