This commit is contained in:
Ilia Denisov
2026-05-07 07:18:55 +02:00
parent 7af57933eb
commit 7cc18159e9
20 changed files with 2090 additions and 12 deletions
+12
View File
@@ -0,0 +1,12 @@
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+/);
});
});