Cover empty equals-style web port values
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
5757cd144c
commit
6afafe9c20
1 file changed
+6
@@ -96,6 +96,12 @@ describe("parseCliOptions", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("throws for empty equals-style web port values", () => {
|
||||
expect(() => parseCliOptions(["--web-port="], {}, "/workspace")).toThrow(
|
||||
"Invalid value for --web-port",
|
||||
);
|
||||
});
|
||||
|
||||
it("throws when backend port value is missing", () => {
|
||||
expect(() => parseCliOptions(["--backend-port"], {}, "/workspace")).toThrow(
|
||||
"Missing value for --backend-port",
|
||||
|
||||
Reference in new issue
Block a user