mirror of
https://github.com/go-task/task.git
synced 2026-06-24 21:26:04 +00:00
Write more args tests
This commit is contained in:
@@ -64,6 +64,18 @@ func TestArgs(t *testing.T) {
|
||||
"FOO": {Static: "bar"},
|
||||
},
|
||||
},
|
||||
{
|
||||
Args: nil,
|
||||
ExpectedCalls: []taskfile.Call{
|
||||
{Task: "default"},
|
||||
},
|
||||
},
|
||||
{
|
||||
Args: []string{},
|
||||
ExpectedCalls: []taskfile.Call{
|
||||
{Task: "default"},
|
||||
},
|
||||
},
|
||||
{
|
||||
Args: []string{"FOO=bar", "BAR=baz"},
|
||||
ExpectedCalls: []taskfile.Call{
|
||||
|
||||
Reference in New Issue
Block a user