import { describe, it, expect } from "vitest";
import { getSiteSettingsController } from "@/interface-adapters/controllers/get-site-settings.controller";
import { getSiteSettingsUseCase } from "@/application/use-cases/get-site-settings.use-case";
import { MockSiteSettingsRepository } from "@/infrastructure/repositories/site-settings.repository.mock";

describe("getSiteSettingsController", () => {
  it("returns site settings", async () => {
    const repo = new MockSiteSettingsRepository();
    const useCase = getSiteSettingsUseCase(repo);
    const controller = getSiteSettingsController(useCase);

    const result = await controller({});
    expect(result.siteName).toBe("My App");
  });
});
