package handlers

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

func TestDashboardGet_NoTenant(t *testing.T) {
	h := &DashboardHandler{}
	r := httptest.NewRequest("GET", "/api/dashboard", nil)
	w := httptest.NewRecorder()

	h.Get(w, r)

	if w.Code != http.StatusForbidden {
		t.Errorf("expected 403, got %d", w.Code)
	}
}
