@@ -8,7 +8,10 @@ describe("Sessions", async () => {
88 const { copilotClient : client , openAiEndpoint, homeDir, env } = await createSdkTestContext ( ) ;
99
1010 it ( "should create and destroy sessions" , async ( ) => {
11- const session = await client . createSession ( { onPermissionRequest : approveAll , model : "fake-test-model" } ) ;
11+ const session = await client . createSession ( {
12+ onPermissionRequest : approveAll ,
13+ model : "fake-test-model" ,
14+ } ) ;
1215 expect ( session . sessionId ) . toMatch ( / ^ [ a - f 0 - 9 - ] + $ / ) ;
1316
1417 expect ( await session . getMessages ( ) ) . toMatchObject ( [
@@ -187,7 +190,9 @@ describe("Sessions", async () => {
187190 } ) ;
188191
189192 onTestFinished ( ( ) => newClient . forceStop ( ) ) ;
190- const session2 = await newClient . resumeSession ( sessionId , { onPermissionRequest : approveAll } ) ;
193+ const session2 = await newClient . resumeSession ( sessionId , {
194+ onPermissionRequest : approveAll ,
195+ } ) ;
191196 expect ( session2 . sessionId ) . toBe ( sessionId ) ;
192197
193198 // TODO: There's an inconsistency here. When resuming with a new client, we don't see
@@ -199,7 +204,9 @@ describe("Sessions", async () => {
199204 } ) ;
200205
201206 it ( "should throw error when resuming non-existent session" , async ( ) => {
202- await expect ( client . resumeSession ( "non-existent-session-id" , { onPermissionRequest : approveAll } ) ) . rejects . toThrow ( ) ;
207+ await expect (
208+ client . resumeSession ( "non-existent-session-id" , { onPermissionRequest : approveAll } )
209+ ) . rejects . toThrow ( ) ;
203210 } ) ;
204211
205212 it ( "should create session with custom tool" , async ( ) => {
0 commit comments