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

tests #41

Open
missKatiaPunter opened this issue Aug 3, 2018 · 0 comments
Open

tests #41

missKatiaPunter opened this issue Aug 3, 2018 · 0 comments

Comments

@missKatiaPunter
Copy link

Great use of supertest to test routes, well done. One baffling issue though - isn't TAP supposed to give you green ticks?... Where are they? Another supertest tip - console.log .text, use something like expect(response.text.includes('button')). This way you can test for specific html tags. Some examples from my past project can be seen at

https://github.com/fac-13/LVKI.blogger/blob/master/src/tests/routes.test.js

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

No branches or pull requests

1 participant