mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 06:40:50 +00:00
fix(google-health): map badminton workouts
This commit is contained in:
1 parent
0c7b958b1b
commit
c83254032e
10 files changed
+16
No files matched your search
@@ -41,6 +41,13 @@ import {
|
||||
mapWristTemperature,
|
||||
} from "../client";
|
||||
|
||||
describe("mapGoogleHealthSportType", () => {
|
||||
it("keeps Badminton as a first-class workout sport", () => {
|
||||
expect(mapGoogleHealthSportType("BADMINTON")).toBe("badminton");
|
||||
expect(mapGoogleHealthSportType("Badminton")).toBe("badminton");
|
||||
});
|
||||
});
|
||||
|
||||
describe("mapWeight — spot sample", () => {
|
||||
it("maps a weightGrams sample to a WEIGHT reading in kg anchored on its physical time", () => {
|
||||
const rows = mapWeight({
|
||||
|
||||
@@ -1027,6 +1027,7 @@ const GOOGLE_HEALTH_EXERCISE_TYPE_MAP: Record<string, string> = {
|
||||
dance: "dance",
|
||||
dancing: "dance",
|
||||
golf: "golf",
|
||||
badminton: "badminton",
|
||||
tennis: "tennis",
|
||||
basketball: "basketball",
|
||||
soccer: "soccer",
|
||||
|
||||
@@ -33,6 +33,7 @@ export const workoutSportTypeEnum = z.enum([
|
||||
"hiit",
|
||||
"dance",
|
||||
"golf",
|
||||
"badminton",
|
||||
"tennis",
|
||||
"basketball",
|
||||
"soccer",
|
||||
|
||||
@@ -32,6 +32,7 @@ export const SPORT_TYPE_ICON: Record<string, LucideIcon> = {
|
||||
hiit: Activity,
|
||||
dance: Activity,
|
||||
golf: Activity,
|
||||
badminton: Activity,
|
||||
tennis: Activity,
|
||||
basketball: Activity,
|
||||
soccer: Activity,
|
||||
|
||||
Reference in new issue
Block a user