docs(videos): re-record video guides and add sponsor, team race, practice ranking, race overview and judging clips (1.70.2)
Also fix team race length chosen in Manage being dropped before the race is created.
This commit is contained in:
1 parent
eb69764e9e
commit
8f748d21df
23 files changed
+312
-8
No files matched your search
@@ -152,6 +152,12 @@ test("event normalization preserves the practice-only marker", () => {
|
||||
assert.equal(event.raceConfig.presetId, "custom");
|
||||
});
|
||||
|
||||
test("event normalization keeps the team race length chosen before the race is created", () => {
|
||||
const deps = { normalizeBrandingConfig: (branding) => branding || {}, normalizeStartMode, normalizeRaceTeam: (team) => team };
|
||||
assert.equal(normalizeEvent({ id: "e", raceConfig: { teamRaceDurationMin: 240 } }, deps).raceConfig.teamRaceDurationMin, 240);
|
||||
assert.equal("teamRaceDurationMin" in normalizeEvent({ id: "e", raceConfig: {} }, deps).raceConfig, false);
|
||||
});
|
||||
|
||||
test("reassignTeamMembers strips a moved driver/car from every other team, leaving the excluded team untouched", () => {
|
||||
const teams = [
|
||||
{ id: "team_a", name: "A", driverIds: ["d1", "d2"], carIds: ["c1"] },
|
||||
|
||||
Reference in new issue
Block a user