From 546315e218412a87edcd17a37c09621e7421816f Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 17 Nov 2022 00:20:21 +0100 Subject: [PATCH] Client - refacto util functions for temperature and wind speed --- .../Workout/WorkoutDetail/WeatherWind.vue | 9 ++--- .../Workout/WorkoutDetail/WorkoutWeather.vue | 23 +++++++------ fittrackee_client/src/utils/units.ts | 20 +++++++++++ .../tests/unit/utils/units.spec.ts | 34 ++++++++++++++++++- 4 files changed, 68 insertions(+), 18 deletions(-) diff --git a/fittrackee_client/src/components/Workout/WorkoutDetail/WeatherWind.vue b/fittrackee_client/src/components/Workout/WorkoutDetail/WeatherWind.vue index 069f73ab..16975664 100644 --- a/fittrackee_client/src/components/Workout/WorkoutDetail/WeatherWind.vue +++ b/fittrackee_client/src/components/Workout/WorkoutDetail/WeatherWind.vue @@ -1,8 +1,6 @@