From 579baef53cd647f9d553c6d4c157ef2a77b77b52 Mon Sep 17 00:00:00 2001 From: Alec M Date: Wed, 11 Dec 2024 10:05:46 -0500 Subject: [PATCH] Add additional test assertions --- src/components/PansBanner/index.test.tsx | 6 ++++-- src/components/PansBanner/index.tsx | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/PansBanner/index.test.tsx b/src/components/PansBanner/index.test.tsx index ad21deccd..c02c1d95e 100644 --- a/src/components/PansBanner/index.test.tsx +++ b/src/components/PansBanner/index.test.tsx @@ -19,14 +19,16 @@ describe("Basic Functionality", () => { describe("Implementation Requirements", () => { it("should contain the OMB Approval Number", () => { - const { getByTestId } = render(); + const { container, getByTestId } = render(); + expect(container.textContent).toContain("OMB No.:"); expect(getByTestId("pans-approval-number")).toHaveTextContent(/0925-7775/); }); it("should contain the Expiration Date", () => { - const { getByTestId } = render(); + const { container, getByTestId } = render(); + expect(container.textContent).toContain("Expiration Date:"); expect(getByTestId("pans-expiration")).toHaveTextContent(/06\/30\/2025/); }); diff --git a/src/components/PansBanner/index.tsx b/src/components/PansBanner/index.tsx index 9ae3ceb69..5c94dd1fb 100644 --- a/src/components/PansBanner/index.tsx +++ b/src/components/PansBanner/index.tsx @@ -37,7 +37,7 @@ const StyledContent = styled(Typography)({ * * @returns {React.FC} */ -const PANSBanner: React.FC = (): React.ReactNode => ( +const PansBanner: React.FC = (): React.ReactNode => ( @@ -71,4 +71,4 @@ const PANSBanner: React.FC = (): React.ReactNode => ( ); -export default memo(PANSBanner); +export default memo(PansBanner);