From d35b586fa6433e3a629a839c3f204d92c0167079 Mon Sep 17 00:00:00 2001 From: Chris Parsons Date: Wed, 8 Apr 2026 13:44:11 +0000 Subject: [PATCH] Fix TS2345 in NCAA football simulator test Add ?? 0 fallback so optional-chained probFirst is number, not number | undefined. Co-Authored-By: Claude Sonnet 4.6 --- .../simulations/__tests__/ncaa-football-simulator.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/simulations/__tests__/ncaa-football-simulator.test.ts b/app/services/simulations/__tests__/ncaa-football-simulator.test.ts index c099772..4e3d4d6 100644 --- a/app/services/simulations/__tests__/ncaa-football-simulator.test.ts +++ b/app/services/simulations/__tests__/ncaa-football-simulator.test.ts @@ -90,7 +90,7 @@ describe("NCAAFootballSimulator", () => { const byId = new Map(results.map((r) => [r.participantId, r])); expect(byId.get("team-1")?.probabilities.probFirst).toBeGreaterThan( - byId.get("team-12")?.probabilities.probFirst + byId.get("team-12")?.probabilities.probFirst ?? 0 ); });