generated from PenaSide/GolangTemplate
21 lines
516 B
Go
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)
|
|
})
|
|
})
|
|
}
|