package initialize_test import ( "testing" "github.com/stretchr/testify/assert" "penahub.gitlab.yandexcloud.net/pena-services/pena-social-auth/internal/initialize" ) func TestNewServices(t *testing.T) { configuration := setDefaultTestingENV(t) t.Run("Сервисы должны успешно инициализироваться", func(t *testing.T) { assert.NotPanics(t, func() { services := initialize.NewServices(&initialize.ServicesDeps{ Config: &configuration.Service, Clients: &initialize.Clients{}, Repositories: &initialize.Repositories{}, }) assert.NotNil(t, services) assert.NotNil(t, services.AmocrmOAuthService) assert.NotNil(t, services.AmocrmService) }) }) }