mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 03:20:33 +08:00
18 lines
480 B
TypeScript
18 lines
480 B
TypeScript
import NotFound from "./NotFound.svelte";
|
|
import { render } from "@testing-library/svelte";
|
|
import "@public/index.css";
|
|
|
|
describe('NotFound', function () {
|
|
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");
|
|
});
|
|
});
|