Skip to content

Commit 68ac86e

Browse files
committed
test: update CLI test for new toc command
Update test expectation to account for additional toc command in CLI action handler count.
1 parent 4d3ed63 commit 68ac86e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cli.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ describe('CLI Entry Point', () => {
146146
it('should set action handlers for commands', async () => {
147147
await import('./cli.js');
148148

149-
// Should call action 8 times (once for each command: convert, move, split, join, merge, index, barrel, validate)
150-
expect(mockAction).toHaveBeenCalledTimes(8);
149+
// Should call action 9 times (once for each command: convert, move, split, join, merge, index, barrel, toc, validate)
150+
expect(mockAction).toHaveBeenCalledTimes(9);
151151
});
152152

153153
it('should add help text for convert command', async () => {

0 commit comments

Comments
 (0)