@@ -66,7 +66,7 @@ describe("Connection", () => {
6666 async newSession ( _ : NewSessionRequest ) : Promise < NewSessionResponse > {
6767 throw new Error ( "Failed to create session" ) ;
6868 }
69- async loadSession ( _ : LoadSessionRequest ) : Promise < void > {
69+ async loadSession ( _ : LoadSessionRequest ) : Promise < LoadSessionResponse > {
7070 throw new Error ( "Failed to load session" ) ;
7171 }
7272 async authenticate ( _ : AuthenticateRequest ) : Promise < void > {
@@ -160,7 +160,9 @@ describe("Connection", () => {
160160 sessionId : "test-session" ,
161161 } ;
162162 }
163- async loadSession ( _ : LoadSessionRequest ) : Promise < void > { }
163+ async loadSession ( _ : LoadSessionRequest ) : Promise < LoadSessionResponse > {
164+ return { } ;
165+ }
164166 async authenticate ( _ : AuthenticateRequest ) : Promise < void > {
165167 // no-op
166168 }
@@ -263,8 +265,11 @@ describe("Connection", () => {
263265 sessionId : "test-session" ,
264266 } ;
265267 }
266- async loadSession ( params : LoadSessionRequest ) : Promise < void > {
268+ async loadSession (
269+ params : LoadSessionRequest ,
270+ ) : Promise < LoadSessionResponse > {
267271 messageLog . push ( `loadSession called: ${ params . sessionId } ` ) ;
272+ return { } ;
268273 }
269274 async authenticate ( params : AuthenticateRequest ) : Promise < void > {
270275 messageLog . push ( `authenticate called: ${ params . methodId } ` ) ;
@@ -397,7 +402,9 @@ describe("Connection", () => {
397402 sessionId : "test-session" ,
398403 } ;
399404 }
400- async loadSession ( _ : LoadSessionRequest ) : Promise < void > { }
405+ async loadSession ( _ : LoadSessionRequest ) : Promise < LoadSessionResponse > {
406+ return { } ;
407+ }
401408 async authenticate ( _ : AuthenticateRequest ) : Promise < void > {
402409 // no-op
403410 }
@@ -496,7 +503,9 @@ describe("Connection", () => {
496503 async newSession ( _ : NewSessionRequest ) : Promise < NewSessionResponse > {
497504 return { sessionId : "test-session" } ;
498505 }
499- async loadSession ( _ : LoadSessionRequest ) : Promise < void > { }
506+ async loadSession ( _ : LoadSessionRequest ) : Promise < LoadSessionResponse > {
507+ return { } ;
508+ }
500509 async authenticate ( _ : AuthenticateRequest ) : Promise < void > {
501510 // no-op
502511 }
0 commit comments