1
0
mirror of https://github.com/go-task/task.git synced 2025-02-05 13:25:14 +02:00

simplified tests

This commit is contained in:
jaedle 2019-02-24 11:25:26 +01:00
parent 80d88d9789
commit 5a23250d32

View File

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