I am using the meanjs 0.4.0
branch. And while performing the routes tests it gives the error timeout of 2000ms exceeded
. The error comes from this code:
before(function(done) {
var app = express.init(mongoose);
agent = request.agent(app);
done();
});
I think the problem is that the express server is not running. In there master version the code is:
var app = require('../../server'),
agent = request.agent(app);
They have exported the app
object in server.js
so in route tests it gets the app instance. But in the 0.4.0
branch they have not exported the app
object. How do I solve this problem