From dd80af3394bf6893b807192c391bc56ad82ed321 Mon Sep 17 00:00:00 2001 From: AidenR Date: Sat, 21 Feb 2026 22:09:59 -0500 Subject: [PATCH] Test files for Footer.tsx, NavBar.tsx, and useChessSocket.tsx --- .../src/components/footer/Footer.test.tsx | 44 +++++ .../src/components/footer/Footer.tsx | 8 +- .../src/components/navbar/NavBar.test.tsx | 185 ++++++++++++++++++ .../hooks/useChessSocket.test.tsx | 59 ++++-- 4 files changed, 273 insertions(+), 23 deletions(-) create mode 100644 react-ystemandchess/src/components/footer/Footer.test.tsx create mode 100644 react-ystemandchess/src/components/navbar/NavBar.test.tsx diff --git a/react-ystemandchess/src/components/footer/Footer.test.tsx b/react-ystemandchess/src/components/footer/Footer.test.tsx new file mode 100644 index 00000000..85de065e --- /dev/null +++ b/react-ystemandchess/src/components/footer/Footer.test.tsx @@ -0,0 +1,44 @@ +import { render, screen } from "@testing-library/react"; +import Footer from "./Footer"; + +test("renders social media links with correct hrefs", () => { + render(