Improve testing suite

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
Sebastian Martinez
2022-03-24 15:05:15 +01:00
parent 6f2f8c454f
commit 286cb1cd21
44 changed files with 2550 additions and 482 deletions
+17
View File
@@ -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");
});
});