Skip to content

Commit f3ddb8a

Browse files
committed
fix shellwrapper test
1 parent 0398c51 commit f3ddb8a

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

cmd/completion_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ func TestCompletionCmd(t *testing.T) {
2121
[]string{"bash"},
2222
nil,
2323
},
24-
"invalid arg": {
24+
"fish": {
2525
[]string{"fish"},
26-
fmt.Errorf("konf currently does not support autocompletions for fish"),
26+
nil,
27+
},
28+
"invalid arg": {
29+
[]string{"invalid"},
30+
fmt.Errorf("konf currently does not support autocompletions for invalid"),
2731
},
2832
}
2933

cmd/shellwrapper_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ func TestShellWrapperCmd(t *testing.T) {
2121
[]string{"bash"},
2222
nil,
2323
},
24-
"invalid arg": {
24+
"fish arg": {
2525
[]string{"fish"},
26-
fmt.Errorf("konf currently does not support fish"),
26+
nil,
27+
},
28+
"invalid arg": {
29+
[]string{"invalid"},
30+
fmt.Errorf("konf currently does not support invalid"),
2731
},
2832
}
2933

0 commit comments

Comments
 (0)