Skip to content

Instantly share code, notes, and snippets.

@mingder78
Created September 4, 2017 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mingder78/6672ad56e5dcf31801c6f1fbd948aa40 to your computer and use it in GitHub Desktop.
Save mingder78/6672ad56e5dcf31801c6f1fbd948aa40 to your computer and use it in GitHub Desktop.
hapi collection
const request = { method: 'POST', url: '/', headers: { authorization: internals.header('john', '123:45') } };
server.inject(request, (res) => {
expect(res.result).to.equal('ok');
done();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment