Skip to content

Commit f5f0c36

Browse files
committed
test: fix test
1 parent ab512b1 commit f5f0c36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/shell.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ describe('shell completion generators', () => {
162162
expect(script).toContain(`[scriptblock]$__${name}CompleterBlock =`);
163163

164164
// Check that the script uses the provided exec path
165-
expect(script).toContain(`$RequestComp = "& ${exec} complete --`);
165+
expect(script).toContain(
166+
`$RequestComp = "& ${exec} complete '--' '$Arguments'`
167+
);
166168

167169
// Check that the script handles directives
168170
expect(script).toContain(

0 commit comments

Comments
 (0)