Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

nelsonic/hapi-testing-with-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hapi testing with lab

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:

Hapi Testing with Lab Error Message

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.

tests passing

About

Repo to demo hapi testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published