13 lines
442 B
TypeScript
13 lines
442 B
TypeScript
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.textContent?.trim()).not.toBe("");
|
|
expect(footer.textContent).toMatch(/version\s+\S+/);
|
|
});
|
|
});
|