const mongoose = require('mongoose');
const port = process.env.PORT = 5000;
const server = require(__dirname + '/../server');
process.env.MONGODB_URI = 'mongodb://localhost/hue_test_db';
module.exports = exports = (callback) => {
  mongoose.connect(process.env.MONGODB_URI, () => {
    server.listen(port, () => {
      console.log('server up on port:' + port);
      callback();
    });
  });
};

@@ -1,12 +1,73 @@
+process.env.MONGODB_URI = 'mongodb://localhost/hue_test_db';%0A
 const mongoo
@@ -184,69 +184,8 @@
 ');%0A
-process.env.MONGODB_URI = 'mongodb://localhost/hue_test_db';%0A
 modu

move db assignment above server