@@ -899,7 +899,7 @@ exports.file = {
899
899
fs . symlinkSync ( path . resolve ( 'test/fixtures/octocat.png' ) , path . join ( srcfile . path , 'octocat.png' ) , 'file' ) ;
900
900
// test symlink copy for files
901
901
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' ) ) ;
903
903
test . ok ( fs . lstatSync ( path . join ( srcfile . path , 'octocat.png' ) ) . isSymbolicLink ( ) ) ;
904
904
test . ok ( fs . lstatSync ( path . join ( destdir . path , 'octocat.png' ) ) . isSymbolicLink ( ) ) ;
905
905
@@ -908,9 +908,10 @@ exports.file = {
908
908
var destdir = new Tempdir ( ) ;
909
909
var fixtures = path . resolve ( 'test/fixtures' ) ;
910
910
var symlinkSource = path . join ( srcdir . path , path . basename ( fixtures ) ) ;
911
+ var destSource = path . join ( destdir . path , path . basename ( fixtures ) ) ;
911
912
fs . symlinkSync ( fixtures , symlinkSource , 'dir' ) ;
912
913
913
- grunt . file . copy ( symlinkSource , destdir . path ) ;
914
+ grunt . file . copy ( symlinkSource , destSource ) ;
914
915
test . ok ( fs . lstatSync ( symlinkSource ) . isSymbolicLink ( ) ) ;
915
916
test . ok ( fs . lstatSync ( path . join ( destdir . path , path . basename ( fixtures ) ) ) . isSymbolicLink ( ) ) ;
916
917
test . done ( ) ;
0 commit comments