Cover --web-port guard for -o=bool token
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
5e8665bb13
commit
cbb0476d29
1 file changed
+6
@@ -536,6 +536,12 @@ describe("parseCliOptions", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("treats -o=bool after --web-port as missing value", () => {
|
||||
expect(() => parseCliOptions(["--web-port", "-o=0"], {}, "/workspace")).toThrow(
|
||||
"Missing value for --web-port",
|
||||
);
|
||||
});
|
||||
|
||||
it("treats equals-style flag tokens after --web-port as missing values", () => {
|
||||
expect(() =>
|
||||
parseCliOptions(["--web-port", "--backend-port=7000"], {}, "/workspace"),
|
||||
|
||||
Reference in new issue
Block a user