Cover trimmed uppercase T3_NO_OPEN falsey parsing
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
4627c42841
commit
8364f8a166
1 file changed
+11
@@ -92,6 +92,17 @@ describe("parseCliOptions", () => {
|
||||
expect(options.noOpen).toBe(true);
|
||||
});
|
||||
|
||||
it("treats trimmed uppercase falsey values for T3_NO_OPEN as disabled", () => {
|
||||
const options = parseCliOptions(
|
||||
[],
|
||||
{
|
||||
T3_NO_OPEN: "\tOFF\t",
|
||||
},
|
||||
"/workspace",
|
||||
);
|
||||
expect(options.noOpen).toBe(false);
|
||||
});
|
||||
|
||||
it("supports explicit equals-style --no-open boolean overrides", () => {
|
||||
const options = parseCliOptions(
|
||||
["--no-open=false"],
|
||||
|
||||
Reference in new issue
Block a user