Skip to content

Commit 03467b7

Browse files
Fix Prettier formatting in client.test.ts
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b91f69c commit 03467b7

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

nodejs/test/client.test.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ describe("CopilotClient", () => {
8888
const session = await client.createSession({ onPermissionRequest: approveAll });
8989

9090
// Mock sendRequest to capture the call without hitting the runtime
91-
const spy = vi.spyOn((client as any).connection!, "sendRequest")
91+
const spy = vi
92+
.spyOn((client as any).connection!, "sendRequest")
9293
.mockImplementation(async (method: string, _params: any) => {
9394
if (method === "session.model.switchTo") return {};
9495
// Fall through for other methods (shouldn't be called)
@@ -97,10 +98,10 @@ describe("CopilotClient", () => {
9798

9899
await session.setModel("gpt-4.1");
99100

100-
expect(spy).toHaveBeenCalledWith(
101-
"session.model.switchTo",
102-
{ sessionId: session.sessionId, modelId: "gpt-4.1" }
103-
);
101+
expect(spy).toHaveBeenCalledWith("session.model.switchTo", {
102+
sessionId: session.sessionId,
103+
modelId: "gpt-4.1",
104+
});
104105

105106
spy.mockRestore();
106107
});

0 commit comments

Comments
 (0)