- {body}
-
-
+ {body}
+
+ Child content
++ Child content +
+Oops! The page you are looking for has been removed or relocated.
diff --git a/src/components/PageNotFound/PageNotFound.test.jsx b/src/components/PageNotFound/PageNotFound.test.jsx new file mode 100644 index 00000000000..9a9f5f17c38 --- /dev/null +++ b/src/components/PageNotFound/PageNotFound.test.jsx @@ -0,0 +1,21 @@ +// eslint-disable-next-line import/no-extraneous-dependencies +import { describe, expect, it } from "@jest/globals"; +import { HelmetProvider } from "react-helmet-async"; +import { MemoryRouter } from "react-router-dom"; +import renderer from "react-test-renderer"; +import PageNotFound from "./PageNotFound.jsx"; + +describe("PageNotFound", () => { + it("renders correctly", () => { + const tree = renderer + .create( ++ Oops! The page you are looking for has been removed or relocated. +
+ + Go to Homepage + +
@@ -31,4 +31,4 @@ function PlaceholderComponent() { ); } -export { PlaceholderString, PlaceholderComponent }; +export { PlaceholderComponent, placeholderString }; diff --git a/src/components/Placeholder/Placeholder.scss b/src/components/Placeholder/Placeholder.scss index 50ac2e52776..0e9a5e2b2ad 100644 --- a/src/components/Placeholder/Placeholder.scss +++ b/src/components/Placeholder/Placeholder.scss @@ -1,4 +1,4 @@ -@import 'functions'; +@import "functions"; .placeholder { h2, @@ -17,7 +17,7 @@ #fcfcfc, getColor(concrete) ); - content: ''; + content: ""; left: 0; height: 100%; position: absolute; diff --git a/src/components/Placeholder/Placeholder.test.jsx b/src/components/Placeholder/Placeholder.test.jsx new file mode 100644 index 00000000000..fd215b1a468 --- /dev/null +++ b/src/components/Placeholder/Placeholder.test.jsx @@ -0,0 +1,11 @@ +// eslint-disable-next-line import/no-extraneous-dependencies +import { describe, expect, it } from "@jest/globals"; +import renderer from "react-test-renderer"; +import { PlaceholderComponent } from "./Placeholder.jsx"; + +describe("PlaceholderComponent", () => { + it("renders correctly", () => { + const tree = renderer.create(
+ +
++ +
++ +
+