fix(test): reject gauntlet flag values · openclaw/openclaw@5b6f4b2
vincentkoc
·
2026-06-21
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -131,6 +131,12 @@ describe("plugin gateway gauntlet helpers", () => {
|
131 | 131 | }); |
132 | 132 | }); |
133 | 133 | |
| 134 | +it("rejects valued flags followed by another option", () => { |
| 135 | +for (const flag of ["--repo-root", "--output-dir", "--plugin", "--qa-scenario"]) { |
| 136 | +expect(() => parseArgs([flag, "--skip-qa"])).toThrow(`Missing value for ${flag}`); |
| 137 | +} |
| 138 | +}); |
| 139 | + |
134 | 140 | it("discovers bundled plugin manifests into lifecycle matrix rows", async () => { |
135 | 141 | await writeManifest( |
136 | 142 | "alpha", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。