diff --git a/app/services/simulations/__tests__/world-cup-simulator.test.ts b/app/services/simulations/__tests__/world-cup-simulator.test.ts index 8760dfd..ab18632 100644 --- a/app/services/simulations/__tests__/world-cup-simulator.test.ts +++ b/app/services/simulations/__tests__/world-cup-simulator.test.ts @@ -155,26 +155,6 @@ describe("WorldCupSimulator", () => { expect(sumFourth).toBeCloseTo(1.0, 2); }); - it("probabilities are all non-negative", async () => { - const participants = makeParticipants(48); - mockDb.query.seasonParticipants.findMany.mockResolvedValue(participants); - mockDb.query.scoringEvents.findFirst.mockResolvedValue(null); - mockDb.query.tournamentGroups.findMany.mockResolvedValue([]); - mockDb.query.playoffMatches.findMany.mockResolvedValue([]); - - const sim = new WorldCupSimulator(500); - const results = await sim.simulate("season-1"); - - for (const r of results) { - const { probFirst, probSecond, probThird, probFourth, probFifth } = r.probabilities; - expect(probFirst).toBeGreaterThanOrEqual(0); - expect(probSecond).toBeGreaterThanOrEqual(0); - expect(probThird).toBeGreaterThanOrEqual(0); - expect(probFourth).toBeGreaterThanOrEqual(0); - expect(probFifth).toBeGreaterThanOrEqual(0); - } - }); - it("SF losers land in 3rd or 4th, never 1st or 2nd", async () => { // Set up 8 participants (small bracket, 2 groups of 4) const participants = makeParticipants(8);