diff options
Diffstat (limited to 'web/frontend/ride-detail-logic.test.ts')
| -rw-r--r-- | web/frontend/ride-detail-logic.test.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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"); |