hfaerber/Refactor-tractor-Fit-lit

Add more tests to utility to test all data sets

Opened this issue · 1 comments

Add more tests to our Utility.js's test file to ensure we're testing each dataset/child class so to speak.

khalidwilliams 3 hours ago Contributor
@hfaerber @Dunn-Austen I don't think it would hurt to be explicit with each dataset here. Especially since some methods are meant to take in parameters for individual stats by date, and that could look different depending on what dataset you're working with.

expect(utility.returnIndividualStatForDate('2019/06/24',

khalidwilliams 3 hours ago Contributor
@Dunn-Austen @hfaerber @NaomiKC92 is this method ever used with hydration or activity data? It could be a good thing to explicitly test if so.

Added one test for hydration while refactoring methods that use a week of data and adding conditional to round sleep's decimal places to one decimal while the other metrics stay rounded to whole number.