From 8b480df98c413d57c52800084291c7b3a9e4089c Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 26 Jun 2026 05:25:48 +0000 Subject: [PATCH] Use Array#toSorted() instead of Array#sort() in cs2-major-stage test Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01PPrEA7jt8Y47Cewq22gMyv --- app/models/__tests__/cs2-major-stage.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/__tests__/cs2-major-stage.test.ts b/app/models/__tests__/cs2-major-stage.test.ts index 2fd6e84..79ff652 100644 --- a/app/models/__tests__/cs2-major-stage.test.ts +++ b/app/models/__tests__/cs2-major-stage.test.ts @@ -308,7 +308,7 @@ describe("resetCs2Event", () => { const recalcCalls = vi.mocked(recalculateParticipantQP).mock.calls; expect(recalcCalls).toHaveLength(2); - expect(recalcCalls.map((c) => c[0]).sort()).toEqual(["p1", "p2"]); + expect(recalcCalls.map((c) => c[0]).toSorted()).toEqual(["p1", "p2"]); for (const call of recalcCalls) expect(call[1]).toBe("season-1"); });