Cover trimmed equals-style --open parsing
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
20ac731149
commit
2c885142b2
1 file changed
+5
@@ -108,6 +108,11 @@ describe("parseCliOptions", () => {
|
||||
expect(options.noOpen).toBe(true);
|
||||
});
|
||||
|
||||
it("trims equals-style --open values before parsing", () => {
|
||||
const options = parseCliOptions(["--open= true "], { T3_NO_OPEN: "true" }, "/workspace");
|
||||
expect(options.noOpen).toBe(false);
|
||||
});
|
||||
|
||||
it("respects last flag when combining --open and --no-open", () => {
|
||||
const openThenNoOpen = parseCliOptions(["--open", "--no-open"], {}, "/workspace");
|
||||
expect(openThenNoOpen.noOpen).toBe(true);
|
||||
|
||||
Reference in new issue
Block a user