Using Superagent/Supertest with Express app in Mocha tests
Turns out that I had to specify a before
test to wait for the MongoDB connection to open before running the tests.
before(function (done) { mongoose.connection.on('open', done)})
Turns out that I had to specify a before
test to wait for the MongoDB connection to open before running the tests.
before(function (done) { mongoose.connection.on('open', done)})