Fix sports-season test: add participants to mock data
findDraftableSportsSeasons now returns participantCount, which requires participants in the mock db response. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
377b26a9c3
commit
1271700f41
1 changed files with 3 additions and 3 deletions
|
|
@ -36,9 +36,9 @@ const pastStart = "2020-01-01";
|
|||
const pastEnd = "2020-12-31";
|
||||
|
||||
const mockSeasons = [
|
||||
{ id: "season-1", name: "2025 NBA Playoffs", draftOn: today, draftOff: future, year: 2025, status: "upcoming", sport: { name: "NBA" } },
|
||||
{ id: "season-2", name: "2025 F1 Season", draftOn: today, draftOff: future, year: 2025, status: "upcoming", sport: { name: "F1" } },
|
||||
{ id: "season-3", name: "2024 Old Golf", draftOn: pastStart, draftOff: pastEnd, year: 2024, status: "completed", sport: { name: "Golf" } },
|
||||
{ id: "season-1", name: "2025 NBA Playoffs", draftOn: today, draftOff: future, year: 2025, status: "upcoming", sport: { name: "NBA" }, participants: [] },
|
||||
{ id: "season-2", name: "2025 F1 Season", draftOn: today, draftOff: future, year: 2025, status: "upcoming", sport: { name: "F1" }, participants: [] },
|
||||
{ id: "season-3", name: "2024 Old Golf", draftOn: pastStart, draftOff: pastEnd, year: 2024, status: "completed", sport: { name: "Golf" }, participants: [] },
|
||||
];
|
||||
|
||||
function makeMockDb(seasons: typeof mockSeasons) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue