From 7c39bc7124f89aa28aaeaffb60b71af9e6335295 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Mon, 17 Aug 2026 10:34:06 +0200 Subject: refactor(web): split ride detail rendering concerns --- web/frontend/ride-detail-logic.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (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 6f27191..a3f143e 100644 --- a/web/frontend/ride-detail-logic.test.ts +++ b/web/frontend/ride-detail-logic.test.ts @@ -41,9 +41,9 @@ test("calculates climb metrics 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)"); + assert.equal(formatClimbLabel({ name: "", category: "Cat 4", cotacol: 45.9, kind: "detected" }), "Cat 4 45.9"); + assert.equal(formatClimbLabel({ name: "Col de Test", category: "Cat 4", cotacol: 45.9, kind: "detected" }), "Col de Test"); + assert.equal(formatClimbLabel({ name: "Ventoux", category: "HC", cotacol: 600, kind: "official" }), "Ventoux (HC)"); }); test("formats profile labels consistently", () => { -- cgit v1.2.3