Use Array#toSorted() instead of Array#sort() in cs2-major-stage test
Some checks failed
🚀 Deploy / 🧪 Test (pull_request) Successful in 3m13s
🚀 Deploy / ʦ🔍 Typecheck & Lint (pull_request) Failing after 1m16s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PPrEA7jt8Y47Cewq22gMyv
This commit is contained in:
Claude 2026-06-26 05:25:48 +00:00
parent 6156b8e36f
commit 8b480df98c
No known key found for this signature in database

View file

@ -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");
});