Cover empty equals-style backend port values

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-09 23:21:07 +00:00
1 parent a1f0ac0724
commit 5757cd144c
1 file changed
+6
+6
View File
@@ -90,6 +90,12 @@ describe("parseCliOptions", () => {
);
});
it("throws for empty equals-style backend port values", () => {
expect(() => parseCliOptions(["--backend-port="], {}, "/workspace")).toThrow(
"Invalid value for --backend-port",
);
});
it("throws when backend port value is missing", () => {
expect(() => parseCliOptions(["--backend-port"], {}, "/workspace")).toThrow(
"Missing value for --backend-port",