mirror of https://github.com/dirtbags/moth.git
Add test for team name state
This commit is contained in:
parent
2370fc6f23
commit
9783f99a39
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue