fix: align inbox project routes
This commit is contained in:
22
backend/internal/httpx/router_integration_test.go
Normal file
22
backend/internal/httpx/router_integration_test.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package httpx_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
"senlinai-agent/backend/internal/config"
|
||||
"senlinai-agent/backend/internal/httpx"
|
||||
"senlinai-agent/backend/internal/logic/inbox"
|
||||
"senlinai-agent/backend/internal/logic/projects"
|
||||
)
|
||||
|
||||
func TestProjectAndInboxRoutesRegisterTogether(t *testing.T) {
|
||||
require.NotPanics(t, func() {
|
||||
httpx.NewProtectedRouter(
|
||||
config.Config{Env: "test"},
|
||||
func(token string) (uint, error) { return 1, nil },
|
||||
projects.NewHandler(projects.NewService()),
|
||||
inbox.NewHandler(inbox.NewService(inbox.StaticAnalyzer{})),
|
||||
)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user