import { render } from "@testing-library/svelte";
import { describe, expect, it } from "vitest";
import Page from "../src/routes/+page.svelte";

describe("landing page", () => {
	it("renders a non-empty version string in the footer", () => {
		const { getByTestId } = render(Page);
		const footer = getByTestId("app-version");
		expect(footer).toBeInTheDocument();
		expect(footer.textContent?.trim()).not.toBe("");
		expect(footer.textContent).toMatch(/version\s+\S+/);
	});
});
