Cover --cwd missing-value guard for --open token
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
ed8e29dedc
commit
e61ed3ce38
1 file changed
+6
@@ -473,6 +473,12 @@ describe("parseCliOptions", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("treats --open after --cwd as missing value", () => {
|
||||
expect(() => parseCliOptions(["--cwd", "--open"], {}, "/workspace")).toThrow(
|
||||
"Missing value for --cwd",
|
||||
);
|
||||
});
|
||||
|
||||
it("treats end-of-options marker after --cwd as missing value", () => {
|
||||
expect(() => parseCliOptions(["--cwd", "--"], {}, "/workspace")).toThrow(
|
||||
"Missing value for --cwd",
|
||||
|
||||
Reference in new issue
Block a user