Skip to content

Commit d41cb3a

Browse files
committed
fix(control-ui): drop unused vitest import and bind captured request in terminal-connection test
1 parent 6aeb057 commit d41cb3a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/src/ui/terminal/terminal-connection.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, expect, it, vi } from "vitest";
1+
import { describe, expect, it } from "vitest";
22
import { TerminalConnection, type TerminalGatewayClient } from "./terminal-connection.ts";
33

44
/** Fake gateway client that records requests and lets tests push events. */
@@ -263,7 +263,7 @@ describe("TerminalConnection", () => {
263263

264264
// The server finalizes the session (emitting terminal.exit) before it
265265
// responds to terminal.close, so the event arrives with no sink.
266-
const baseRequest = client.request;
266+
const baseRequest = client.request.bind(client);
267267
client.request = ((method: string, params: unknown) => {
268268
if (method === "terminal.close") {
269269
client.emit("terminal.exit", {

0 commit comments

Comments
 (0)