1
0
mirror of https://github.com/go-task/task.git synced 2025-04-21 12:17:07 +02:00

refactoring

This commit is contained in:
jaedle 2019-03-04 12:46:53 +01:00
parent 1025c2e3a1
commit 1d783bf6c7

View File

@ -162,11 +162,9 @@ func TestPrintAllWithSpaces(t *testing.T) {
tasks["t2"] = t2 tasks["t2"] = t2
tasks["t3"] = t3 tasks["t3"] = t3
tf := &taskfile.Taskfile{ summary.PrintAll(&l,
Tasks: tasks, &taskfile.Taskfile{Tasks: tasks},
} []taskfile.Call{{Task: "t1"}, {Task: "t2"}, {Task: "t3"}})
summary.PrintAll(&l, tf, []taskfile.Call{{Task: "t1"}, {Task: "t2"}, {Task: "t3"}})
assert.True(t, strings.HasPrefix(buffer.String(), "task: t1")) assert.True(t, strings.HasPrefix(buffer.String(), "task: t1"))
assert.Contains(t, buffer.String(), "\n(task does not have description or summary)\n\n\ntask: t2") assert.Contains(t, buffer.String(), "\n(task does not have description or summary)\n\n\ntask: t2")