mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Improve testing suite
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user