An question I've seen several times popping up in hapi issues is how to get an initialized hapi server into your tests. There's a few patterns I've seen in common use so I thought I'd document them somewhere.
Here's the test we're going to use as an example:
it('Can add two numbers', (done) => {
server.inject('/add/1/5', (res) => {
expect(res.statusCode).to.equal(200);