diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-06 21:08:36 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-06 22:37:28 +1100 |
commit | 18283ad41bbb2ac17c8482ddaaf0f31ea9d38a26 (patch) | |
tree | b1690cacecb4605edf3c857052141bbf0199d6e9 /pkg/gui/context_test.go | |
parent | 1996eddd9124709431ced14b1650ae5a50963be7 (diff) |
add popup handler for easier testing
Diffstat (limited to 'pkg/gui/context_test.go')
-rw-r--r-- | pkg/gui/context_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/context_test.go b/pkg/gui/context_test.go index abfcab4cd..7f03f7484 100644 --- a/pkg/gui/context_test.go +++ b/pkg/gui/context_test.go @@ -8,7 +8,7 @@ import ( ) func TestCanDeactivatePopupContextsWithoutViews(t *testing.T) { - contexts := []func(gui *Gui) Context { + contexts := []func(gui *Gui) Context{ func(gui *Gui) Context { return gui.State.Contexts.Credentials }, func(gui *Gui) Context { return gui.State.Contexts.Confirmation }, func(gui *Gui) Context { return gui.State.Contexts.CommitMessage }, @@ -20,7 +20,7 @@ func TestCanDeactivatePopupContextsWithoutViews(t *testing.T) { context := c(gui) gui.g = &gocui.Gui{} - gui.deactivateContext(context) + _ = gui.deactivateContext(context) // This really only checks a prerequisit, not the effect of deactivateContext view, _ := gui.g.View(context.GetViewName()) @@ -32,7 +32,7 @@ func TestCanDeactivateCommitFilesContextsWithoutViews(t *testing.T) { gui := NewDummyGui() gui.g = &gocui.Gui{} - gui.deactivateContext(gui.State.Contexts.CommitFiles) + _ = gui.deactivateContext(gui.State.Contexts.CommitFiles) // This really only checks a prerequisite, not the effect of deactivateContext view, _ := gui.g.View(gui.State.Contexts.CommitFiles.GetViewName()) |