Skip to content

Commit 03ea1bd

Browse files
committed
test(ui): give hydration request mocks real signatures
1 parent 49a9ee7 commit 03ea1bd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ui/src/pages/chat/chat-pane-session-hydration.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function deferred<T>() {
1717
describe("chat pane session hydration", () => {
1818
it("starts secondary RPCs together only after the transcript commit", async () => {
1919
const secondaryResponse = new Promise<never>(() => {});
20-
const request = vi.fn(() => secondaryResponse);
20+
const request = vi.fn((_method: string, _params?: unknown) => secondaryResponse);
2121
const listBranches = vi.fn(() => secondaryResponse);
2222
const sessions = {
2323
capturePullRequestEpoch: vi.fn(() => Symbol("pull-requests")),
@@ -67,7 +67,7 @@ describe("chat pane session hydration", () => {
6767
});
6868

6969
it("drops a previous session's deferred hydration before it reaches commit", async () => {
70-
const request = vi.fn(() => new Promise<never>(() => {}));
70+
const request = vi.fn((_method: string, _params?: unknown) => new Promise<never>(() => {}));
7171
const { pane, state } = createTestChatPane({
7272
client: { request } as unknown as GatewayBrowserClient,
7373
sessions: {} as SessionCapability,

0 commit comments

Comments
 (0)