customer/internal/initialize/controllers_test.go
2023-05-16 07:01:55 +03:00

21 lines
516 B
Go

package initialize_test
import (
"testing"
"github.com/stretchr/testify/assert"
"penahub.gitlab.yandexcloud.net/pena-services/customer/internal/initialize"
)
func TestNewControllers(t *testing.T) {
t.Run("Контроллеры должны успешно инициализироваться", func(t *testing.T) {
assert.NotPanics(t, func() {
controllers := initialize.NewControllers(&initialize.ControllersDeps{
Services: &initialize.Services{},
})
assert.NotNil(t, controllers)
})
})
}