From 9d17bc75a683d3618e5cc3fe0bbece797da6ce6b Mon Sep 17 00:00:00 2001 From: Broderick Westrope Date: Thu, 26 Dec 2024 09:42:48 +1100 Subject: [PATCH] chore: fix lint errors --- internal/tui/views/menu_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/tui/views/menu_test.go b/internal/tui/views/menu_test.go index 749e138..0c7c758 100644 --- a/internal/tui/views/menu_test.go +++ b/internal/tui/views/menu_test.go @@ -20,6 +20,10 @@ func TestMenuFormCompletion(t *testing.T) { return 1 case tui.ModeUltra: return 2 + case tui.ModeMenu: + fallthrough + case tui.ModeLeaderboard: + fallthrough default: return 0 } @@ -89,7 +93,8 @@ func TestMenuFormCompletion(t *testing.T) { tm.Send(tea.KeyMsg{Type: tea.KeyEnter}) time.Sleep(10 * time.Millisecond) - // TODO(fix): The following msg send should not be necessary. The SwitchModeMsg should be sent automatically when the form is completed. + // TODO(fix): The following msg send should not be necessary. + // The SwitchModeMsg should be sent automatically when the form is completed. tm.Send(tea.KeyMsg{Type: tea.KeyUp}) time.Sleep(10 * time.Millisecond)