1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

Fix nil errors when merging Taskfiles

Closes #150
This commit is contained in:
Andrey Nering
2018-12-02 14:17:32 -02:00
parent 4ed4ad9852
commit a9b1f38a7c
5 changed files with 39 additions and 0 deletions

View File

@@ -484,3 +484,15 @@ func TestIncludes(t *testing.T) {
}
tt.Run(t)
}
func TestIncludesEmptyMain(t *testing.T) {
tt := fileContentTest{
Dir: "testdata/includes_empty",
Target: "included:default",
TrimSpace: true,
Files: map[string]string{
"file.txt": "default",
},
}
tt.Run(t)
}