Skip to content

Commit d6ded14

Browse files
committed
test: add invalid-both-parts test for parseUntilSpec archive coverage
Add test for 'abc/def' input to parseUntilSpec — exercises the path at lines 185-189 where both left AND right atoms of a slash-format are unparseable (neither count nor duration), triggering ValidationError.
1 parent 183fb12 commit d6ded14

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/commands/issue/archive.func.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ describe("parseUntilSpec", () => {
201201
test("count/count → throws (right must be duration)", () => {
202202
expect(() => parseUntilSpec("10x/5x")).toThrow(ValidationError);
203203
});
204+
205+
test("invalid/invalid → throws when both parts are unparseable", () => {
206+
// Both parts are unparseable atoms (not count, duration, or date)
207+
expect(() => parseUntilSpec("abc/def")).toThrow(ValidationError);
208+
});
204209
});
205210

206211
// ── archiveCommand.func() integration tests ────────────────────────

0 commit comments

Comments
 (0)