concept server.inject in category hapi

appears as: server.inject
hapi.js in Action

This is an excerpt from Manning's book hapi.js in Action.

Listing 10.14. Using server.inject() with a payload

server.inject() is a method that allows you to simulate a request to your hapi server. It pushes a request through your routes without the need for any network interaction. This is incredibly useful for building fast tests.