mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
simplified tests
This commit is contained in:
@@ -591,8 +591,7 @@ func TestDetails(t *testing.T) {
|
|||||||
|
|
||||||
buff.Reset()
|
buff.Reset()
|
||||||
assert.NoError(t, e.Run(context.Background(), taskfile.Call{Task: "task-without-details"}))
|
assert.NoError(t, e.Run(context.Background(), taskfile.Call{Task: "task-without-details"}))
|
||||||
assert.NotContains(t, buff.String(), "task-without-details was executed")
|
assert.Equal(t, buff.String(), "task: There is no detailed description for task: task-without-details\n")
|
||||||
assert.NotContains(t, buff.String(), "dependend-task was executed")
|
|
||||||
|
|
||||||
buff.Reset()
|
buff.Reset()
|
||||||
assert.NoError(t, e.Run(context.Background(), taskfile.Call{Task: "other-task-with-details"}, taskfile.Call{Task: "task-with-details"}))
|
assert.NoError(t, e.Run(context.Background(), taskfile.Call{Task: "other-task-with-details"}, taskfile.Call{Task: "task-with-details"}))
|
||||||
|
Reference in New Issue
Block a user