@@ -899,7 +899,7 @@ exports.file = {
899899 fs . symlinkSync ( path . resolve ( 'test/fixtures/octocat.png' ) , path . join ( srcfile . path , 'octocat.png' ) , 'file' ) ;
900900 // test symlink copy for files
901901 var destdir = new Tempdir ( ) ;
902- grunt . file . copy ( path . join ( srcfile . path , 'octocat.png' ) , destdir . path ) ;
902+ grunt . file . copy ( path . join ( srcfile . path , 'octocat.png' ) , path . join ( destdir . path , 'octocat.png' ) ) ;
903903 test . ok ( fs . lstatSync ( path . join ( srcfile . path , 'octocat.png' ) ) . isSymbolicLink ( ) ) ;
904904 test . ok ( fs . lstatSync ( path . join ( destdir . path , 'octocat.png' ) ) . isSymbolicLink ( ) ) ;
905905
@@ -908,9 +908,10 @@ exports.file = {
908908 var destdir = new Tempdir ( ) ;
909909 var fixtures = path . resolve ( 'test/fixtures' ) ;
910910 var symlinkSource = path . join ( srcdir . path , path . basename ( fixtures ) ) ;
911+ var destSource = path . join ( destdir . path , path . basename ( fixtures ) ) ;
911912 fs . symlinkSync ( fixtures , symlinkSource , 'dir' ) ;
912913
913- grunt . file . copy ( symlinkSource , destdir . path ) ;
914+ grunt . file . copy ( symlinkSource , destSource ) ;
914915 test . ok ( fs . lstatSync ( symlinkSource ) . isSymbolicLink ( ) ) ;
915916 test . ok ( fs . lstatSync ( path . join ( destdir . path , path . basename ( fixtures ) ) ) . isSymbolicLink ( ) ) ;
916917 test . done ( ) ;
0 commit comments