fix(qa): reject duplicate telegram proof controls · openclaw/openclaw@2cbb4e7
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -157,6 +157,17 @@ describe("telegram user Crabbox proof log polling", () => {
|
157 | 157 | expect(parseArgs(["--text", "-ping"]).text).toBe("-ping"); |
158 | 158 | }); |
159 | 159 | |
| 160 | +it("rejects duplicate single-value proof controls while keeping repeated expectations", () => { |
| 161 | +expect(() => |
| 162 | +parseArgs(["--output-dir", ".artifacts/one", "--output-dir", ".artifacts/two"]), |
| 163 | +).toThrow("--output-dir was provided more than once"); |
| 164 | + |
| 165 | +expect(parseArgs(["--expect", "OpenClaw", "--expect", "ready"]).expect).toEqual([ |
| 166 | +"OpenClaw", |
| 167 | +"ready", |
| 168 | +]); |
| 169 | +}); |
| 170 | + |
160 | 171 | it("uses unique default output dirs", () => { |
161 | 172 | const firstOutputDir = parseArgs([]).outputDir; |
162 | 173 | const secondOutputDir = parseArgs([]).outputDir; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。