File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments