Use Array#toSorted() instead of Array#sort() in cs2-major-stage test
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PPrEA7jt8Y47Cewq22gMyv
This commit is contained in:
parent
6156b8e36f
commit
8b480df98c
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue