mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-06 16:31:08 +00:00
test: Update prompt-file error message assertions to match UX improvements
Tests expected old error wording after PR #387 changed the messages. Agent: team-lead Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a5f40391a7
commit
387a231a78
2 changed files with 3 additions and 3 deletions
|
|
@ -305,7 +305,7 @@ describe("--prompt-file with real files", () => {
|
|||
"/tmp/spawn-nonexistent-test-file-12345.txt",
|
||||
]);
|
||||
const out = output(result);
|
||||
expect(out).toContain("Error reading prompt file");
|
||||
expect(out).toContain("Prompt file not found");
|
||||
expect(result.exitCode).not.toBe(0);
|
||||
});
|
||||
|
||||
|
|
@ -328,7 +328,7 @@ describe("--prompt-file with real files", () => {
|
|||
"/tmp/spawn-missing-file.txt",
|
||||
]);
|
||||
const out = output(result);
|
||||
expect(out).toContain("Make sure the file exists");
|
||||
expect(out).toContain("Check the path and try again");
|
||||
expect(result.exitCode).not.toBe(0);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ describe("extractFlagValue in actual CLI", () => {
|
|||
it("should error when prompt file does not exist", () => {
|
||||
const result = runCli(["claude", "sprite", "--prompt-file", "/tmp/nonexistent-spawn-test-file.txt"]);
|
||||
const output = result.stderr + result.stdout;
|
||||
expect(output).toContain("Error reading prompt file");
|
||||
expect(output).toContain("Prompt file not found");
|
||||
expect(result.exitCode).not.toBe(0);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue