From 9783f99a39708a6de1f28170c4d73d0c230c26be Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Fri, 21 Oct 2022 14:41:59 -0700 Subject: [PATCH] Add test for team name state --- cmd/mothd/state_filesystem_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmd/mothd/state_filesystem_test.go b/cmd/mothd/state_filesystem_test.go index ce870ce..233a72e 100644 --- a/cmd/mothd/state_filesystem_test.go +++ b/cmd/mothd/state_filesystem_test.go @@ -631,6 +631,15 @@ func TestStateTeamIDs(t *testing.T) { } +func TestStateTeamNames(t *testing.T) { + s := NewTestState() + s.refresh() + + if teamNames := s.TeamNames(); len(teamNames) != 0 { + t.Errorf("Expected to find 0 registered teams, found %d (%s), instead", len(teamNames), teamNames) + } +} + func TestDevelState(t *testing.T) { s := NewTestState() ds := NewDevelState(s)