1
0
mirror of https://github.com/go-task/task.git synced 2025-03-19 21:17:46 +02:00

refactoring

This commit is contained in:
jaedle 2019-02-24 12:15:59 +01:00
parent b25a9e8884
commit c0f9af5daa

View File

@ -588,8 +588,9 @@ func TestDetails(t *testing.T) {
assert.NotContains(t, buff.String(), "dependend-task was executed")
buff.Reset()
assert.NoError(t, e.Run(context.Background(), taskfile.Call{Task: "task-without-details"}))
assert.Equal(t, buff.String(), "task: There is no detailed description for task: task-without-details\n")
const noDetails = "task-without-details"
assert.NoError(t, e.Run(context.Background(), taskfile.Call{Task: noDetails}))
assert.Equal(t, buff.String(), "task: There is no detailed description for task: "+noDetails+"\n")
buff.Reset()
const firstTask = "other-task-with-details"