test: use non-mutating sort in cli runner spec

This commit is contained in:
Peter Steinberger
2026-04-25 14:07:24 +01:00
parent cd392b947c
commit 5c6a5afe81

View File

@@ -1026,7 +1026,7 @@ describe("runCliAgent spawn path", () => {
releaseSpawn?.();
const results = await Promise.all([first, second]);
expect(results.map((result) => result.text).sort()).toEqual(["one", "two"]);
expect(results.map((result) => result.text).toSorted()).toEqual(["one", "two"]);
expect(stdin.write).toHaveBeenCalledTimes(2);
expect(supervisorSpawnMock).toHaveBeenCalledOnce();
});