Expand --no-open equals-value parser coverage
Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
1 parent
d943f75b7c
commit
3397175977
1 file changed
+11
@@ -81,6 +81,17 @@ describe("parseCliOptions", () => {
|
||||
);
|
||||
});
|
||||
|
||||
it("throws for empty equals-style --no-open values", () => {
|
||||
expect(() => parseCliOptions(["--no-open="], {}, "/workspace")).toThrow(
|
||||
"Invalid value for --no-open",
|
||||
);
|
||||
});
|
||||
|
||||
it("parses case-insensitive equals-style --no-open values", () => {
|
||||
const options = parseCliOptions(["--no-open=ON"], {}, "/workspace");
|
||||
expect(options.noOpen).toBe(true);
|
||||
});
|
||||
|
||||
it("parses case-insensitive and trimmed T3_NO_OPEN truthy values", () => {
|
||||
const options = parseCliOptions(
|
||||
[],
|
||||
|
||||
Reference in new issue
Block a user