diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-17 10:34:06 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-08-17 10:34:06 +0200 |
| commit | 7c39bc7124f89aa28aaeaffb60b71af9e6335295 (patch) | |
| tree | 56f2948a4e0af8fa107e618caeba3a4dd50a269f /web/frontend/ride-detail-logic.test.ts | |
| parent | 2a20ea69a3d62c32c09e62e756a872a3042372b2 (diff) | |
refactor(web): split ride detail rendering concerns
Diffstat (limited to 'web/frontend/ride-detail-logic.test.ts')
| -rw-r--r-- | web/frontend/ride-detail-logic.test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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", () => { |