feat(sponsor): show each driver's car for the heat on overlays and Race Day (1.71.0)
This commit is contained in:
1 parent
8ad2b31488
commit
c4375daa93
12 files changed
+43
-10
No files matched your search
@@ -17,3 +17,8 @@ test("the overlay page passes the whole leaderboard (OBS cuts to its own rows se
|
||||
const source = readFileSync(new URL("../src/misc_views.js", import.meta.url), "utf8");
|
||||
assert.doesNotMatch(source, /buildLeaderboard\(active\)\.slice\(0, 12\)/);
|
||||
});
|
||||
|
||||
test("sponsor heats: the overlay shows the driver's car for this heat", () => {
|
||||
const html = renderOverlayLeaderboard([{ key: "a", driverId: "a", displayName: "Anna", heatCarName: "Rental 2", laps: 3, resultDisplay: "-", bestLapMs: 17500 }], deps);
|
||||
assert.match(html, /overlay-heat-car[^>]*>🚗 Rental 2/);
|
||||
});
|
||||
Reference in new issue
Block a user