Skip to content

Commit 749d24d

Browse files
committed
test: remove redundant cases
1 parent d679961 commit 749d24d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

test/parser.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,17 +90,15 @@ describe("parseRawArgs", () => {
9090
});
9191

9292
it("handles arguments with no values", () => {
93-
const args = ["--name", "--age", "--specified", "--any"];
94-
const opts = { string: ["name"], number: ["age"], boolean: ["specified"] };
93+
const args = ["--name", "--specified", "--any"];
94+
const opts = { string: ["name"], boolean: ["specified"] };
9595
const result = parseRawArgs(args, opts);
9696

9797
expect("name" in result).toBeTruthy();
98-
expect("age" in result).toBeTruthy();
9998
expect("specified" in result).toBeTruthy();
10099
expect("any" in result).toBeTruthy();
101100

102101
expect(result.name).toBeUndefined();
103-
expect(result.age).toBeUndefined();
104102
expect(result.specified).toBeTruthy();
105103
expect(result.any).toBeTruthy();
106104
});

0 commit comments

Comments
 (0)