@@ -9,16 +9,16 @@ describe("DirUtils", () => {
99 expect ( target . getCdParam ( path . join ( '/root' ) , path . join ( '/root' ) ) ) . toBe ( '' ) ;
1010 } ) ;
1111 it ( "changes directly to the child folder, because currentDir is the prefix of dir" , ( ) => {
12- expect ( target . getCdParam ( path . join ( '/root/devonfw' ) , path . join ( '/root/devonfw/setup' ) ) ) . toBe ( path . join ( 'setup' ) ) ;
12+ expect ( target . getCdParam ( path . join ( '/root/devonfw' ) , path . join ( '/root/devonfw/setup' ) ) ) . toBe ( path . join ( 'setup' ) . replace ( "\\" , "/" ) ) ;
1313 } ) ;
1414 it ( "returns an absolute path, because both dirs don't have matching parent folders" , ( ) => {
15- expect ( target . getCdParam ( path . join ( '/setup' ) , path . join ( '/root/devonfw/setup' ) ) ) . toBe ( path . join ( '/root/devonfw/setup' ) ) ;
15+ expect ( target . getCdParam ( path . join ( '/setup' ) , path . join ( '/root/devonfw/setup' ) ) ) . toBe ( path . join ( '/root/devonfw/setup' ) . replace ( "\\" , "/" ) ) ;
1616 } ) ;
1717 it ( "changes to parent folder before changing to child folder" , ( ) => {
18- expect ( target . getCdParam ( path . join ( '/root/devonfw' ) , path . join ( '/root/setup/folder0/folder1' ) ) ) . toBe ( path . join ( '../setup/folder0/folder1' ) ) ;
18+ expect ( target . getCdParam ( path . join ( '/root/devonfw' ) , path . join ( '/root/setup/folder0/folder1' ) ) ) . toBe ( path . join ( '../setup/folder0/folder1' ) . replace ( "\\" , "/" ) ) ;
1919 } ) ;
2020 it ( "changes to parent folder before changing to child folder and one child folder has the same position and name" , ( ) => {
21- expect ( target . getCdParam ( path . join ( '/root/devonfw/folder/setup' ) , path . join ( '/root/devonfw/setup/setup' ) ) ) . toBe ( path . join ( '../../setup/setup' ) ) ;
21+ expect ( target . getCdParam ( path . join ( '/root/devonfw/folder/setup' ) , path . join ( '/root/devonfw/setup/setup' ) ) ) . toBe ( path . join ( '../../setup/setup' ) . replace ( "\\" , "/" ) ) ;
2222 } ) ;
2323
2424 } ) ;
0 commit comments