fac-17 / Generation-Change

Generation Change (Tech For Better Project)
https://generation-change.netlify.com/
1 stars 3 forks source link

Feature/testing #47

Closed samjam48 closed 5 years ago

samjam48 commented 5 years ago

sorted issue with not being able to test the searchbar component whilst we used 'history' context to navigate. See react router testing docs https://reacttraining.com/react-router/web/guides/testing So i think actual route testing won't be too hard.

Mainly got lost with trying to mock function calls to test when things were and weren't being called in different scenarios. Tried so many things but probably having google would of helped. I guess I'm better at algorithms and refactoring things without internet rather than testing react components...