Cover empty equals-style backend port values
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
a1f0ac0724
commit
5757cd144c
1 file changed
+6
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user