Files
fristydev/components/site-footer.test.tsx
fristy ff18fc353d
CI / Code Health (pull_request) Successful in 22s
CI / Lint, Test & Build (pull_request) Successful in 46s
CI / Code Health (push) Successful in 25s
CI / Lint, Test & Build (push) Successful in 54s
Deploy / Build & Push Image (push) Successful in 56s
Deploy / Trigger Deploy (push) Successful in 1s
Domain degisikligi: fristy.net -> fristy.dev
2026-10-15 21:48:52 +03:00

16 lines
699 B
TypeScript

import { describe, expect, it } from "vitest";
import { render, screen } from "@testing-library/react";
import { SiteFooter } from "@/components/site-footer";
import { getDictionary } from "@/lib/i18n/get-dictionary";
describe("SiteFooter", () => {
it("renders brand, rights, and source links", () => {
const dict = getDictionary("en");
const { container } = render(<SiteFooter dict={dict.footer} />);
expect(container.querySelector('a[href="https://fristy.dev"]')).not.toBeNull();
expect(container.textContent).toContain(dict.footer.rights);
const links = screen.getAllByRole("link");
expect(links.length).toBeGreaterThanOrEqual(3);
});
});