@@ -7,7 +7,7 @@ describe("LocalRuntime constructor", () => {
77 it ( "should expand tilde in srcBaseDir" , ( ) => {
88 const runtime = new LocalRuntime ( "~/workspace" ) ;
99 const workspacePath = runtime . getWorkspacePath ( "/home/user/project" , "branch" ) ;
10-
10+
1111 // The workspace path should use the expanded home directory
1212 const expected = path . join ( os . homedir ( ) , "workspace" , "project" , "branch" ) ;
1313 expect ( workspacePath ) . toBe ( expected ) ;
@@ -16,15 +16,15 @@ describe("LocalRuntime constructor", () => {
1616 it ( "should handle absolute paths without expansion" , ( ) => {
1717 const runtime = new LocalRuntime ( "/absolute/path" ) ;
1818 const workspacePath = runtime . getWorkspacePath ( "/home/user/project" , "branch" ) ;
19-
19+
2020 const expected = path . join ( "/absolute/path" , "project" , "branch" ) ;
2121 expect ( workspacePath ) . toBe ( expected ) ;
2222 } ) ;
2323
2424 it ( "should handle bare tilde" , ( ) => {
2525 const runtime = new LocalRuntime ( "~" ) ;
2626 const workspacePath = runtime . getWorkspacePath ( "/home/user/project" , "branch" ) ;
27-
27+
2828 const expected = path . join ( os . homedir ( ) , "project" , "branch" ) ;
2929 expect ( workspacePath ) . toBe ( expected ) ;
3030 } ) ;
0 commit comments