evening_detective/internal/tests/statistics_test.go

19 lines
377 B
Go

package tests
import (
"testing"
"github.com/stretchr/testify/assert"
)
func Test_StoryStatistics(t *testing.T) {
client, close := getClient()
defer close()
getGraphResp, err := getGraph(client)
assert.Nil(t, err, "запрос отправлен успешно")
assert.Equal(t, 5, int(getGraphResp.CountNodes))
assert.Equal(t, 3, int(getGraphResp.CountEdges))
}