website refactor

This commit is contained in:
2026-01-21 16:52:43 +01:00
parent ac37871bef
commit 2325eef8b5
18 changed files with 835 additions and 47 deletions

View File

@@ -101,11 +101,13 @@ describe('Team domain (HTTP, module-wiring)', () => {
if (response.body.teams.length > 0) {
const team = response.body.teams[0];
expect(team).toBeDefined();
expect(team.rating).not.toBeNull();
expect(typeof team.rating).toBe('number');
expect(team.rating).toBeGreaterThan(0);
expect(team.totalWins).toBeGreaterThan(0);
expect(team.totalRaces).toBeGreaterThan(0);
// Teams may have null ratings if they have no race results
if (team.rating !== null) {
expect(typeof team.rating).toBe('number');
expect(team.rating).toBeGreaterThan(0);
expect(team.totalWins).toBeGreaterThan(0);
expect(team.totalRaces).toBeGreaterThan(0);
}
}
});