From 706edc84d855ea46d3c8faee82090cfaf0a7b515 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 17 Aug 2026 13:18:25 +0200 Subject: feat(web): mark climb boundaries on ride maps --- web/frontend/ride-detail-logic.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'web/frontend/ride-detail-logic.test.ts') diff --git a/web/frontend/ride-detail-logic.test.ts b/web/frontend/ride-detail-logic.test.ts index a3f143e..471eb49 100644 --- a/web/frontend/ride-detail-logic.test.ts +++ b/web/frontend/ride-detail-logic.test.ts @@ -6,6 +6,7 @@ import { cotacolForClimb, elevationAtDistance, formatClimbLabel, + formatClimbBoundaryLabel, formatDistance, formatElevation, nearestPointIndex, @@ -46,6 +47,11 @@ test("formats profile climb labels with category", () => { assert.equal(formatClimbLabel({ name: "Ventoux", category: "HC", cotacol: 600, kind: "official" }), "Ventoux (HC)"); }); +test("formats climb boundary labels", () => { + assert.equal(formatClimbBoundaryLabel(0, "start"), "Climb 1 start"); + assert.equal(formatClimbBoundaryLabel(2, "end"), "Climb 3 end"); +}); + test("formats profile labels consistently", () => { assert.equal(formatDistance(2.4), "2.4 km"); assert.equal(formatDistance(12.4), "12 km"); -- cgit v1.2.3