ericahagle / fitlit

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

test: Add test for findStepGoalAverage function #54

Closed ericahagle closed 1 year ago

ericahagle commented 1 year ago

Description

Contributors

@ericahagle / @tenthwalker

Notes

I thought about writing a test to check if the data returned a user that didn't include a dailyStepGoal, but that would require some more reworking of the function itself, and none of the objects in the API return exclude that property. So, this seemed like a little too much extra work at this point. But we could revisit it if we have more time at the end of the project and want to refactor.

Checklist