Closed ericahagle closed 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.
I'm good with just testing the happy path for now and flagging this as an opportunity for refactoring later.
Description
findDistanceTraveled
function to return total distance traveled for a user on a given dayfindDistanceTraveled
functionContributors
@ericahagle
Notes
dailyStepGoal
, but needed to return distance based onnumSteps
, so that update is included in this PR.Checklist