Cover T3_NO_OPEN on-value parsing
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
2bd2fe2869
commit
ac6bae97fb
1 file changed
+11
@@ -47,6 +47,17 @@ describe("parseCliOptions", () => {
|
||||
expect(options.noOpen).toBe(true);
|
||||
});
|
||||
|
||||
it("accepts 'on' as T3_NO_OPEN truthy value", () => {
|
||||
const options = parseCliOptions(
|
||||
[],
|
||||
{
|
||||
T3_NO_OPEN: "on",
|
||||
},
|
||||
"/workspace",
|
||||
);
|
||||
expect(options.noOpen).toBe(true);
|
||||
});
|
||||
|
||||
it("treats non-truthy T3_NO_OPEN values as disabled", () => {
|
||||
const options = parseCliOptions(
|
||||
[],
|
||||
|
||||
Reference in new issue
Block a user