fix(tests): final two mock stragglers after schema rename

- draft-pick.test.ts: assertion on db.query.participantQualifyingTotals
- process-match-result.test.ts: mock key participants → seasonParticipants

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Chris Parsons 2026-05-01 19:25:25 +00:00
parent 43304f4a8d
commit 2c9fd6fe81
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -220,6 +220,6 @@ describe("getDraftedParticipantsWithPoints", () => {
await getDraftedParticipantsWithPoints("team-1", "season-1", db);
expect(db.query.participantQualifyingTotals.findMany).not.toHaveBeenCalled();
expect(db.query.seasonParticipantQualifyingTotals.findMany).not.toHaveBeenCalled();
});
});

View file

@ -430,7 +430,7 @@ describe("processPlayoffEvent - NBA Play-In Round 1 loserAdvances fix", () => {
playoffMatches: {
findMany: vi.fn().mockResolvedValue(matches),
},
participants: {
seasonParticipants: {
findMany: vi.fn().mockResolvedValue([]),
},
seasonParticipantResults: {