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:
parent
80d88d9789
commit
5a23250d32
@ -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"}))
|
||||
|
Loading…
x
Reference in New Issue
Block a user