Add test for team name state

This commit is contained in:
John Donaldson 2022-10-21 14:41:59 -07:00
parent 2370fc6f23
commit 9783f99a39
1 changed files with 9 additions and 0 deletions

View File

@ -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) { func TestDevelState(t *testing.T) {
s := NewTestState() s := NewTestState()
ds := NewDevelState(s) ds := NewDevelState(s)