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

renaming field in taskfile to summary

This commit is contained in:
jaedle
2019-02-24 15:37:02 +01:00
parent 06d0af7a1d
commit d05d418c4c
6 changed files with 10 additions and 10 deletions

View File

@@ -555,20 +555,20 @@ func TestIncludesCallingRoot(t *testing.T) {
}
func TestDetailsParsing(t *testing.T) {
const dir = "testdata/details"
const dir = "testdata/summary"
e := task.Executor{
Dir: dir,
}
assert.NoError(t, e.Setup())
assert.Equal(t, e.Taskfile.Tasks["task-with-details"].Details, "details of task-with-details - line 1\nline 2\nline 3\n")
assert.Equal(t, e.Taskfile.Tasks["other-task-with-details"].Details, "details of other-task-with-details")
assert.Equal(t, e.Taskfile.Tasks["task-without-details"].Details, "")
assert.Equal(t, e.Taskfile.Tasks["task-with-details"].Summary, "details of task-with-details - line 1\nline 2\nline 3\n")
assert.Equal(t, e.Taskfile.Tasks["other-task-with-details"].Summary, "details of other-task-with-details")
assert.Equal(t, e.Taskfile.Tasks["task-without-details"].Summary, "")
}
func TestDetails(t *testing.T) {
const dir = "testdata/details"
const dir = "testdata/summary"
var buff bytes.Buffer
e := task.Executor{