Created
September 4, 2017 01:36
-
-
Save mingder78/6672ad56e5dcf31801c6f1fbd948aa40 to your computer and use it in GitHub Desktop.
hapi collection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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