I would like to call request multiple time (2 times) in mocha before hook. Is there a correct procedure/way to call them. My current usage is like this and I get error done() called too many times.
describe('...', function(){
before(function(done){
request({
...
}, function(err,res,body){
...
done(); //also tried by removing it.
});
//request 2
request({
...
}, function(err,res,body){
...
done();
});
});
//it block follows
});