From 2c9fd6fe81d90603cf661a3d2234468cf4fe29de Mon Sep 17 00:00:00 2001 From: Chris Parsons Date: Fri, 1 May 2026 19:25:25 +0000 Subject: [PATCH] fix(tests): final two mock stragglers after schema rename MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- app/models/__tests__/draft-pick.test.ts | 2 +- app/models/__tests__/process-match-result.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/__tests__/draft-pick.test.ts b/app/models/__tests__/draft-pick.test.ts index e335b11..38930d7 100644 --- a/app/models/__tests__/draft-pick.test.ts +++ b/app/models/__tests__/draft-pick.test.ts @@ -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(); }); }); diff --git a/app/models/__tests__/process-match-result.test.ts b/app/models/__tests__/process-match-result.test.ts index 0d530b9..fdb5d6d 100644 --- a/app/models/__tests__/process-match-result.test.ts +++ b/app/models/__tests__/process-match-result.test.ts @@ -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: {