diff --git a/pkg/game/generator_test.go b/pkg/game/generator_test.go index 87730e8..176a11b 100644 --- a/pkg/game/generator_test.go +++ b/pkg/game/generator_test.go @@ -6,6 +6,7 @@ import ( "testing" "github.com/google/uuid" + "github.com/iliadenisov/galaxy/pkg/model/game" "github.com/iliadenisov/galaxy/pkg/repo" "github.com/iliadenisov/galaxy/pkg/util" "github.com/stretchr/testify/assert" @@ -44,6 +45,7 @@ func TestNewGame(t *testing.T) { if g.Race[r].Relations[i].RaceID == g.Race[r].ID { assert.Fail(t, "race relation with itself") } + assert.Equal(t, game.RelationWar, g.Race[r].Relations[i].Relation) } }