new raceday and backup

This commit is contained in:
larssand
2026-09-01 07:07:23 +02:00
parent c2bfa97d30
commit f561dd8feb
21 changed files with 1042 additions and 60 deletions

View File

@@ -311,3 +311,26 @@ test("running timing clock updates without rebuilding the leaderboard details mo
assert.equal(renders, 1);
assert.equal(headerRefreshes, 1);
});
test("Race Day clock refreshes in place while running or paused", () => {
let renders = 0;
let dynamicRefreshes = 0;
const base = {
dom: { clock: { textContent: "" } },
currentLanguage: () => "en",
getActiveSession: () => ({ status: "running" }),
getCurrentView: () => "race_day",
getOverlayMode: () => false,
handleSessionTimerTick: () => ({ changed: false }),
renderView: () => { renders += 1; },
refreshTimingDynamics: () => { dynamicRefreshes += 1; },
updateHeaderState: () => {},
};
tickClockHelper(base);
tickClockHelper({ ...base, getActiveSession: () => ({ status: "paused" }) });
assert.equal(dynamicRefreshes, 2);
assert.equal(renders, 0);
});