From 2a20ea69a3d62c32c09e62e756a872a3042372b2 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 17 Aug 2026 09:06:41 +0200 Subject: feat(web): refine ride profile climb labels --- web/frontend/ride-detail-logic.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 b848f7e..6f27191 100644 --- a/web/frontend/ride-detail-logic.test.ts +++ b/web/frontend/ride-detail-logic.test.ts @@ -40,9 +40,10 @@ test("calculates climb metrics with Cotacol", () => { assert.equal(metrics.category, categoryForCotacol(metrics.cotacol)); }); -test("formats profile climb labels with Cotacol", () => { +test("formats profile climb labels with category", () => { assert.equal(formatClimbLabel("", "Cat 4", 45.9), "Cat 4 45.9"); assert.equal(formatClimbLabel("Col de Test", "Cat 4", 45.9), "Col de Test"); + assert.equal(formatClimbLabel("Ventoux", "HC", 600, true), "Ventoux (HC)"); }); test("formats profile labels consistently", () => { -- cgit v1.2.3