Cover trimmed case-insensitive short -o values
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
df14dafe32
commit
60e6d7a2e8
1 file changed
+5
@@ -111,6 +111,11 @@ describe("parseCliOptions", () => {
|
||||
expect(options.noOpen).toBe(true);
|
||||
});
|
||||
|
||||
it("trims equals-style -o values before parsing", () => {
|
||||
const options = parseCliOptions(["-o= ON "], { T3_NO_OPEN: "true" }, "/workspace");
|
||||
expect(options.noOpen).toBe(false);
|
||||
});
|
||||
|
||||
it("lets -o=true override truthy no-open environment defaults", () => {
|
||||
const options = parseCliOptions(["-o=true"], { T3_NO_OPEN: "yes" }, "/workspace");
|
||||
expect(options.noOpen).toBe(false);
|
||||
|
||||
Reference in new issue
Block a user