ericahagle / fitlit

Turing FE Mod 2 Group Project
https://fitlit-seven.vercel.app
0 stars 2 forks source link

test: Add tests for findDistanceTraveled function #59

Closed ericahagle closed 1 year ago

ericahagle commented 1 year ago

Description

Contributors

@ericahagle

Notes

Checklist

ericahagle commented 1 year ago

I tried to figure out how to test a negative scenario (no available activity data) but kept running into undefined issues, making me think that the function would have to be altered further in order to handle this gracefully. If anyone has ideas, I'd love to get that working. If not, I think just the happy path is good enough for now considering the api data itself.

tenthwalker commented 1 year ago

I'm good with just testing the happy path for now and flagging this as an opportunity for refactoring later.