diff options
author | Elwardi <elwardifadeli@gmail.com> | 2021-08-06 18:38:26 +0100 |
---|---|---|
committer | Elwardi <elwardifadeli@gmail.com> | 2021-08-06 18:38:26 +0100 |
commit | dcd3b7c058f9c1289234c2ec174d6dd9802e96e2 (patch) | |
tree | 0e1d87e194e819155ee60251fa64283350c7cc84 /pkg/gui/gui_test.go | |
parent | 906ec30cac9ea632006b295b30bca732498f81bc (diff) |
Show only labels in menuFromCommand prompts
Diffstat (limited to 'pkg/gui/gui_test.go')
-rw-r--r-- | pkg/gui/gui_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/gui_test.go b/pkg/gui/gui_test.go index d4e0415c7..e3989ba24 100644 --- a/pkg/gui/gui_test.go +++ b/pkg/gui/gui_test.go @@ -105,7 +105,7 @@ func TestGuiGenerateMenuCandidates(t *testing.T) { }, }, { - "Multiple named groups with empty description", + "Multiple named groups with empty labelFormat", "upstream/pr-1", "(?P<remote>[a-z]*)/(?P<branch>.*)", "{{ .branch }}|{{ .remote }}", @@ -113,7 +113,7 @@ func TestGuiGenerateMenuCandidates(t *testing.T) { func(actualEntry []CommandMenuEntry, err error) { assert.NoError(t, err) assert.EqualValues(t, "pr-1|upstream", actualEntry[0].value) - assert.EqualValues(t, "", actualEntry[0].label) + assert.EqualValues(t, "pr-1|upstream", actualEntry[0].label) }, }, { |