This code is for Testing Hapi Services with Lab by
Fionn Kelleher
see:
https://medium.com/the-spumko-suite/testing-hapi-services-with-lab-96ac463c490a
Followed the tutorial but when ever I ran node .
or npm test
I got the following error:
Error: Invalid routeConfig options (/users/{username})
Screenshot:
Sent @_expr a tweet asking for help:
https://twitter.com/nelsonic/statuses/475023275253592064
@_expr replied with a pull request changing all instances of path to params (Hapi 5.x)
All working now. (tests passing) But code coverage is low because the tests do not force errors to follow the error-checking branches.