Cover T3_NO_OPEN yes-value parsing
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
3787530124
commit
4d7fdad80b
1 file changed
+11
@@ -58,6 +58,17 @@ describe("parseCliOptions", () => {
|
||||
expect(options.noOpen).toBe(true);
|
||||
});
|
||||
|
||||
it("accepts 'yes' as T3_NO_OPEN truthy value", () => {
|
||||
const options = parseCliOptions(
|
||||
[],
|
||||
{
|
||||
T3_NO_OPEN: "yes",
|
||||
},
|
||||
"/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