function(req, res) {
anything(arg, function() {
stubbedFunction();
})
return res.send(200).end();
}
describe('whatever', function() {
it('just do it', function(done) {
request(app)
.post('/')
.end(function(err, response) {
assert.isNull(err);
done();
});
});
});
sinon.stub(jsFile, 'stubbedFunction').waitForCall().then(done);