aotds-docks/src/routes/(about)/about/about.test.js

15 lines
446 B
JavaScript
Raw Normal View History

2023-04-14 16:56:39 +00:00
import { render, fireEvent, screen, getByText } from "@testing-library/svelte";
import "@testing-library/jest-dom";
import About from "./+page.svelte";
test("we have an about page", () => {
const { getByText } = render(About);
expect(getByText("Welcome to the docks!")).toBeInTheDocument();
});
2023-05-04 22:42:07 +00:00
test("link to gitea is there", () => {
const { getByText } = render(About);
expect(getByText("my Gitea instance")).toBeInTheDocument();
});