global.bluebird = require('bluebird');
global.chai = require('chai');
global.chaiHttp = require('chai-http');
global.sinon = require('sinon');
global.mongoose = require('mongoose');

mongoose.Promise = bluebird;
process.env.NODE_ENV = 'test';
process.env.MONGO_DB_URI = 'mongodb://developer:developer@ds147520.mlab.com:47520/web-jam-dev';
global.expect = chai.expect;
chai.use(chaiHttp);

global.bluebird = require('bluebird');
global.chai = require('chai');
global.chaiHttp = require('chai-http');
global.sinon = require('sinon');
global.mongoose = require('mongoose');
global.mockgoose = require('sinon-mongoose');

mongoose.Promise = bluebird;
process.env.NODE_ENV = 'test';
process.env.MONGO_DB_URI = 'mongodb://developer:developer@ds147520.mlab.com:47520/web-jam-dev';
global.expect = chai.expect;
chai.use(chaiHttp);

add sinon mongoose package