test: tighten qa matrix cli options · openclaw/openclaw@ae81d2a
steipete
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -58,20 +58,20 @@ describe("matrix qa cli registration", () => {
|
58 | 58 | const matrix = qa.commands.find((command) => command.name() === "matrix"); |
59 | 59 | const optionNames = matrix?.options.map((option) => option.long) ?? []; |
60 | 60 | |
61 | | -expect(optionNames).toEqual( |
62 | | -expect.arrayContaining([ |
63 | | - "--repo-root", |
64 | | - "--output-dir", |
65 | | - "--provider-mode", |
66 | | - "--model", |
67 | | - "--alt-model", |
68 | | - "--scenario", |
69 | | - "--fast", |
70 | | - "--profile", |
71 | | - "--fail-fast", |
72 | | - "--sut-account", |
73 | | -]), |
74 | | -); |
| 61 | +for (const optionName of [ |
| 62 | +"--repo-root", |
| 63 | +"--output-dir", |
| 64 | +"--provider-mode", |
| 65 | +"--model", |
| 66 | +"--alt-model", |
| 67 | +"--scenario", |
| 68 | +"--fast", |
| 69 | +"--profile", |
| 70 | +"--fail-fast", |
| 71 | +"--sut-account", |
| 72 | +]) { |
| 73 | +expect(optionNames).toContain(optionName); |
| 74 | +} |
75 | 75 | expect(optionNames).not.toContain("--credential-source"); |
76 | 76 | expect(optionNames).not.toContain("--credential-role"); |
77 | 77 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。