Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nyc coverage #43

Closed
freemvmt opened this issue Nov 29, 2019 · 0 comments
Closed

nyc coverage #43

freemvmt opened this issue Nov 29, 2019 · 0 comments

Comments

@freemvmt
Copy link

Ran some coverage tests! They're coming back pretty good!

Screenshot from 2019-11-29 10-40-00

The main line you want to read is for router.js since that's the one you're really testing with supertest. The others are incidentally invoked. Coverage could be improved by including a supertest for the search query endpoint (q=...) and by using nock to test your request function in the api.js file.

If you want help with that last bit we've managed to rig it up so you can refer to our code or ask us if helpful! :) x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants