import { describe, expect, test } from "vitest";
import { handleAgentDashboardRoute } from "./agent-dashboard";

describe("agent dashboard API route", () => {
  test("delegates unauthorized requests to the existing agent handler", async () => {
    const response = await handleAgentDashboardRoute(
      new Request("http://localhost/api/agent/dashboard", { method: "POST" }),
    );

    expect(response.status).toBe(401);
  });
});
