diff --git a/src/page.ts b/src/page.ts index 192e53d..9856df4 100644 --- a/src/page.ts +++ b/src/page.ts @@ -197,7 +197,7 @@ export function leaderboardPage( const login = escapeHtml(row.login); const chip = standing(row, program, state.status); const chipHtml = chip ? `${escapeHtml(chip.text)}` : ""; - const card = `Card`; + const card = `Card`; const prList = row.prs .map( (pr) => diff --git a/test/page.test.ts b/test/page.test.ts index c1e5c2f..77a71b4 100644 --- a/test/page.test.ts +++ b/test/page.test.ts @@ -107,6 +107,13 @@ describe("leaderboardPage", () => { expect(html).toContain(' { + const cards = html.match(/]*>Card<\/a>/g); + expect(cards).toEqual(board.rows.map(({ login }) => + `Card` + )); + }); + it("states the rules, the window and who the reward comes from", () => { expect(html).toContain("Merged pull requests in chatcops, ogcops and toolbelt, Oct 1 to Oct 31, 2026 (UTC)."); expect(html).toContain('
Running now. 20 days left.
');