mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-13 13:42:52 +00:00
fix(tooling): reject malformed topology limits
This commit is contained in:
@@ -198,6 +198,15 @@ describe("ts-topology", () => {
|
||||
`);
|
||||
});
|
||||
|
||||
it("rejects malformed CLI limits", async () => {
|
||||
const captured = createCapturedIo();
|
||||
const exitCode = await main(["--limit=abc"], captured.io);
|
||||
|
||||
expect(exitCode).toBe(1);
|
||||
expect(captured.readStderr()).toContain("--limit must be a positive integer");
|
||||
expect(captured.readStdout()).toBe("");
|
||||
});
|
||||
|
||||
it("throws a clear error for invalid text report names", () => {
|
||||
expect(() =>
|
||||
renderTextReport(
|
||||
|
||||
Reference in New Issue
Block a user