@@ -452,6 +452,7 @@ describe("sisyphus-task", () => {
452452
453453 const mockClient = {
454454 session : {
455+ get : async ( ) => ( { data : { directory : "/project" } } ) ,
455456 create : async ( ) => ( { data : { id : "ses_sync_error_test" } } ) ,
456457 prompt : async ( ) => {
457458 throw new Error ( "JSON Parse error: Unexpected EOF" )
@@ -504,6 +505,7 @@ describe("sisyphus-task", () => {
504505
505506 const mockClient = {
506507 session : {
508+ get : async ( ) => ( { data : { directory : "/project" } } ) ,
507509 create : async ( ) => ( { data : { id : "ses_sync_success" } } ) ,
508510 prompt : async ( ) => ( { data : { } } ) ,
509511 messages : async ( ) => ( {
@@ -560,6 +562,7 @@ describe("sisyphus-task", () => {
560562
561563 const mockClient = {
562564 session : {
565+ get : async ( ) => ( { data : { directory : "/project" } } ) ,
563566 create : async ( ) => ( { data : { id : "ses_agent_notfound" } } ) ,
564567 prompt : async ( ) => {
565568 throw new Error ( "Cannot read property 'name' of undefined agent.name" )
@@ -610,6 +613,7 @@ describe("sisyphus-task", () => {
610613 const mockManager = { launch : async ( ) => ( { } ) }
611614 const mockClient = {
612615 session : {
616+ get : async ( ) => ( { data : { directory : "/project" } } ) ,
613617 create : async ( ) => ( { data : { id : "ses_sync_model" } } ) ,
614618 prompt : async ( input : any ) => {
615619 promptBody = input . body
0 commit comments