Add support for dest = '.' and additional DestinationFilepath test

This commit is contained in:
Priya Wadhwa
2018-03-20 14:10:13 -07:00
parent b3ec877b60
commit cc0c672697
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -109,6 +109,13 @@ var destinationFilepathTests = []struct {
dest: "/dir",
expectedFilepath: "/dir/context/bar",
},
{
srcName: "context/foo",
filename: "context/foo",
cwd: "/test",
dest: ".",
expectedFilepath: "/test/foo",
},
}
func Test_DestinationFilepath(t *testing.T) {