Skip to content

Commit f2891d7

Browse files
author
Eric Wheeler
committed
test: update no_shell_integration event test
Update test to handle string message parameter in no_shell_integration event Signed-off-by: Eric Wheeler <[email protected]>
1 parent a867595 commit f2891d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/integrations/terminal/__tests__/TerminalProcess.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ describe("TerminalProcess", () => {
125125

126126
// Set up event listeners to verify events are emitted
127127
const eventPromises = Promise.all([
128-
new Promise<void>((resolve) => noShellProcess.once("no_shell_integration", resolve)),
128+
new Promise<void>((resolve) =>
129+
noShellProcess.once("no_shell_integration", (_message: string) => resolve()),
130+
),
129131
new Promise<void>((resolve) => noShellProcess.once("completed", (_output?: string) => resolve())),
130132
new Promise<void>((resolve) => noShellProcess.once("continue", resolve)),
131133
])

0 commit comments

Comments
 (0)