inject
An inject function to run integration tests
Arguments
Name
Type
Description
route
Map|Function
The route/handler to run tests against
Returns
Type
Description
Object
The Light My Request object is returned
Usage
const { debug, router, methods, response } = require('octoris')
function handler () {
return response.send(200, 'Hello')
}
debug.inject({
url: 'localhost:3000',
method: 'GET'
}, router.route(['/'], [methods.GET(handler)]))
Last updated
Was this helpful?