mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:00:42 +00:00
test: use non-mutating sort in cli runner spec
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user