package rest_test

import (
	"net/http/httptest"
	"testing"

	"github.com/gin-gonic/gin"
	"github.com/nexuscrm/backend/internal/interfaces/rest"
	"github.com/stretchr/testify/assert"
)

// ---------------------------------------------------------------------------
// ConnectHandler.GetNotifications — unauthenticated
// ---------------------------------------------------------------------------

func TestConnectHandler_GetNotifications_Unauthenticated(t *testing.T) {
	w := httptest.NewRecorder()
	c, _ := gin.CreateTestContext(w)
	c.Request = httptest.NewRequest("GET", "/connect/notifications", nil)

	handler := rest.NewConnectHandler(nil)
	assert.Panics(t, func() { handler.GetNotifications(c) })
}
