Skip to content

Commit 48add0f

Browse files
committed
Write more args tests
1 parent a468522 commit 48add0f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

internal/args/args_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@ func TestArgs(t *testing.T) {
6464
"FOO": {Static: "bar"},
6565
},
6666
},
67+
{
68+
Args: nil,
69+
ExpectedCalls: []taskfile.Call{
70+
{Task: "default"},
71+
},
72+
},
73+
{
74+
Args: []string{},
75+
ExpectedCalls: []taskfile.Call{
76+
{Task: "default"},
77+
},
78+
},
6779
{
6880
Args: []string{"FOO=bar", "BAR=baz"},
6981
ExpectedCalls: []taskfile.Call{

0 commit comments

Comments
 (0)