Spaces:
Paused
Paused
Download src/cli/dns-cli.test.ts from amos-fernandes/melbot: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/spaces/amos-fernandes/melbot/resolve/main/src/cli/dns-cli.test.ts
- Command line
-
hf download hf://spaces/amos-fernandes/melbot/src/cli/dns-cli.test.ts
-
curl -L -o dns-cli.test.ts https://huggingface.co/spaces/amos-fernandes/melbot/resolve/main/src/cli/dns-cli.test.ts
539 Bytes
| import { describe, expect, it, vi } from "vitest"; | |
| const { buildProgram } = await import("./program.js"); | |
| describe("dns cli", () => { | |
| it("prints setup info (no apply)", async () => { | |
| const log = vi.spyOn(console, "log").mockImplementation(() => {}); | |
| const program = buildProgram(); | |
| await program.parseAsync(["dns", "setup"], { from: "user" }); | |
| const output = log.mock.calls.map((call) => call.join(" ")).join("\n"); | |
| expect(output).toContain("DNS setup"); | |
| expect(output).toContain("moltbot.internal"); | |
| }); | |
| }); | |