import { describe, it, expect, vi, beforeEach } from "vitest";
import { render, screen } from "@solidjs/testing-library";
import PublicFooter from "~/components/PublicFooter";

// Mock any external dependencies if needed

describe("PublicFooter", () => {
  beforeEach(() => {
    vi.clearAllMocks();
  });

  it("renders footer with copyright text", () => {
    render(() => PublicFooter());
    expect(screen.getByText(/© \d{4} NXTGAUGE/)).toBeInTheDocument();
  });

  it("renders links", () => {
    render(() => PublicFooter());
    expect(screen.getByRole("link", { name: /terms/i })).toBeInTheDocument();
    expect(screen.getByRole("link", { name: /privacy/i })).toBeInTheDocument();
    expect(screen.getByRole("link", { name: /contact/i })).toBeInTheDocument();
  });
});
