fix: align cli output tests and help examples

This commit is contained in:
Peter Steinberger
2026-01-21 05:20:31 +00:00
parent 968b967854
commit 810374d648
4 changed files with 21 additions and 6 deletions
+3 -1
View File
@@ -7,6 +7,8 @@ describe("dns cli", () => {
const log = vi.spyOn(console, "log").mockImplementation(() => {});
const program = buildProgram();
await program.parseAsync(["dns", "setup"], { from: "user" });
expect(log).toHaveBeenCalledWith(expect.stringContaining("Domain:"));
const output = log.mock.calls.map((call) => call.join(" ")).join("\n");
expect(output).toContain("DNS setup");
expect(output).toContain("clawdbot.internal");
});
});