mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(coding-agent): update end-of-options CLI test
This commit is contained in:
parent
c1279a65b3
commit
bcad846f93
1 changed files with 5 additions and 3 deletions
|
|
@ -92,11 +92,13 @@ describe("experimental CLI commands", () => {
|
|||
const result = experimentalCli.parse(["--unknown", "@prompt.md", "--", "--listen", "unix:///tmp/pi.sock"]);
|
||||
expect(result).toMatchObject({
|
||||
ok: true,
|
||||
command: { command: "pi", options: { fileArgs: ["prompt.md"] } },
|
||||
command: {
|
||||
command: "pi",
|
||||
options: { fileArgs: ["prompt.md"], messages: ["--listen", "unix:///tmp/pi.sock"] },
|
||||
},
|
||||
});
|
||||
if (!result.ok || result.command.command !== "pi") return;
|
||||
expect(result.command.options.unknownFlags.get("unknown")).toBe(true);
|
||||
expect(result.command.options.unknownFlags.get("listen")).toBe("unix:///tmp/pi.sock");
|
||||
expect(result.command.options.unknownFlags).toEqual(new Map([["unknown", true]]));
|
||||
});
|
||||
|
||||
test.each([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue