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 <noreply@anthropic.com>
This commit is contained in:
parent
d991ae69f4
commit
d35b586fa6
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue