test: update no_shell_integration event test

Update test to handle string message parameter in no_shell_integration event

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>
This commit is contained in:
Eric Wheeler 2025-03-08 17:53:51 -08:00
parent a867595a6a
commit f2891d7bc6

View file

@ -125,7 +125,9 @@ describe("TerminalProcess", () => {
// Set up event listeners to verify events are emitted
const eventPromises = Promise.all([
new Promise<void>((resolve) => noShellProcess.once("no_shell_integration", resolve)),
new Promise<void>((resolve) =>
noShellProcess.once("no_shell_integration", (_message: string) => resolve()),
),
new Promise<void>((resolve) => noShellProcess.once("completed", (_output?: string) => resolve())),
new Promise<void>((resolve) => noShellProcess.once("continue", resolve)),
])