mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
18 lines
476 B
TypeScript
18 lines
476 B
TypeScript
import NotFound from "./NotFound.svelte";
|
|
import { render } from "@testing-library/svelte";
|
|
import "@public/index.css";
|
|
|
|
describe("NotFound", () => {
|
|
it("shows passed props correctly", () => {
|
|
render(NotFound, {
|
|
props: {
|
|
title: "nakamoto",
|
|
subtitle: "Sorry, the requested project was not found.",
|
|
},
|
|
});
|
|
cy.findByText("nakamoto");
|
|
cy.findByText("Sorry, the requested project was not found.");
|
|
cy.findByText("Back");
|
|
});
|
|
});
|