fix(scripts): reject short flag Discord smoke values · openclaw/openclaw@89768d4
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -190,6 +190,11 @@ describe("script-specific dev tooling hardening", () => {
|
190 | 190 | expect(() => discordSmokeTesting.parseArgs(["--channel", "--json"])).toThrow( |
191 | 191 | "--channel requires a value", |
192 | 192 | ); |
| 193 | +for (const flag of ["--channel", "--token", "--timeout-ms", "--state-dir"]) { |
| 194 | +expect(() => discordSmokeTesting.parseArgs([flag, "-h"])).toThrow( |
| 195 | +`${flag} requires a value`, |
| 196 | +); |
| 197 | +} |
193 | 198 | }); |
194 | 199 | |
195 | 200 | it("redacts Discord webhook tokens from API paths", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。