test: use non-mutating sort in cli runner spec · openclaw/openclaw@5c6a5af
steipete
·
2026-04-25
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1026,7 +1026,7 @@ describe("runCliAgent spawn path", () => {
|
1026 | 1026 | releaseSpawn?.(); |
1027 | 1027 | |
1028 | 1028 | const results = await Promise.all([first, second]); |
1029 | | -expect(results.map((result) => result.text).sort()).toEqual(["one", "two"]); |
| 1029 | +expect(results.map((result) => result.text).toSorted()).toEqual(["one", "two"]); |
1030 | 1030 | expect(stdin.write).toHaveBeenCalledTimes(2); |
1031 | 1031 | expect(supervisorSpawnMock).toHaveBeenCalledOnce(); |
1032 | 1032 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。