Files
radicle-explorer/src/NotFound.spec.ts
T
2022-08-31 17:47:07 +02:00

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");
});
});