Sort teams by win-loss within each division group before assigning divisionRank so that the leader is always the best-record team, not whichever team happened to appear first in ESPN's flat response. Also warn to console when a team's displayName isn't in the hardcoded MLB_TEAM_DIVISION map, surfacing renames or expansion teams immediately instead of silently storing division="" and recreating the display bug. https://claude.ai/code/session_01288dkXYwKJUfXrEhPd8rmo |
||
|---|---|---|
| .. | ||
| epl.test.ts | ||
| f1.test.ts | ||
| mlb.test.ts | ||
| mls.test.ts | ||
| nba.test.ts | ||
| nhl.test.ts | ||
| sync.test.ts | ||
| wnba.test.ts | ||