From f3ddb8ada827179e8c1e4479f43d6bc01788f066 Mon Sep 17 00:00:00 2001 From: Simon Bein Date: Tue, 2 Jul 2024 13:54:24 +0200 Subject: [PATCH] fix shellwrapper test --- cmd/completion_test.go | 8 ++++++-- cmd/shellwrapper_test.go | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/cmd/completion_test.go b/cmd/completion_test.go index c33654f..42035b8 100644 --- a/cmd/completion_test.go +++ b/cmd/completion_test.go @@ -21,9 +21,13 @@ func TestCompletionCmd(t *testing.T) { []string{"bash"}, nil, }, - "invalid arg": { + "fish": { []string{"fish"}, - fmt.Errorf("konf currently does not support autocompletions for fish"), + nil, + }, + "invalid arg": { + []string{"invalid"}, + fmt.Errorf("konf currently does not support autocompletions for invalid"), }, } diff --git a/cmd/shellwrapper_test.go b/cmd/shellwrapper_test.go index 019d1a0..06e8081 100644 --- a/cmd/shellwrapper_test.go +++ b/cmd/shellwrapper_test.go @@ -21,9 +21,13 @@ func TestShellWrapperCmd(t *testing.T) { []string{"bash"}, nil, }, - "invalid arg": { + "fish arg": { []string{"fish"}, - fmt.Errorf("konf currently does not support fish"), + nil, + }, + "invalid arg": { + []string{"invalid"}, + fmt.Errorf("konf currently does not support invalid"), }, }