test: tighten gateway response assertions · openclaw/openclaw@a199ddf
steipete
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -94,7 +94,7 @@ describe("completion-cli write-state", () => {
|
94 | 94 | await program.parseAsync(["completion", "--write-state"], { from: "user" }); |
95 | 95 | |
96 | 96 | const cacheDir = path.join(stateDir, "completions"); |
97 | | -expect((await fs.readdir(cacheDir)).sort()).toEqual([ |
| 97 | +expect((await fs.readdir(cacheDir)).toSorted()).toEqual([ |
98 | 98 | "openclaw.bash", |
99 | 99 | "openclaw.fish", |
100 | 100 | "openclaw.ps1", |
@@ -137,7 +137,7 @@ describe("completion-cli write-state", () => {
|
137 | 137 | [program, "qa", process.argv, { purpose: "completion" }], |
138 | 138 | ]); |
139 | 139 | expect(registerPluginCliCommandsFromValidatedConfigMock).not.toHaveBeenCalled(); |
140 | | -expect((await fs.readdir(path.join(stateDir, "completions"))).sort()).toEqual([ |
| 140 | +expect((await fs.readdir(path.join(stateDir, "completions"))).toSorted()).toEqual([ |
141 | 141 | "openclaw.bash", |
142 | 142 | "openclaw.fish", |
143 | 143 | "openclaw.ps1", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。