From 2f6052f5e01fc6fab4c1441f48e8e2a5d3a4ee7b Mon Sep 17 00:00:00 2001 From: kanhaiya04 Date: Wed, 5 Apr 2023 22:46:27 +0530 Subject: [PATCH] Test for FooterPage --- .../src/components/Footer/FooterPage.js | 2 +- .../src/components/Footer/FooterPage.test.js | 57 +++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 com-dict-client/src/components/Footer/FooterPage.test.js diff --git a/com-dict-client/src/components/Footer/FooterPage.js b/com-dict-client/src/components/Footer/FooterPage.js index 1a4af6a..b7614d1 100644 --- a/com-dict-client/src/components/Footer/FooterPage.js +++ b/com-dict-client/src/components/Footer/FooterPage.js @@ -146,7 +146,7 @@ function Footer() { - Copyright © SCoReLab + Copyright © SCoReLab diff --git a/com-dict-client/src/components/Footer/FooterPage.test.js b/com-dict-client/src/components/Footer/FooterPage.test.js new file mode 100644 index 0000000..f650640 --- /dev/null +++ b/com-dict-client/src/components/Footer/FooterPage.test.js @@ -0,0 +1,57 @@ +import React from "react"; +import { render, screen } from "@testing-library/react"; +import { BrowserRouter } from "react-router-dom"; +import Footer from "./FooterPage"; + +describe("Footer_Page", () => { + test("renders correctly", () => { + render(