fac-14 / DAAMwk5

MIT License
0 stars 0 forks source link

tests #41

Open missKatiaPunter opened 6 years ago

missKatiaPunter commented 6 years ago

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