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