diff --git a/src/components/Footer.test.tsx b/src/components/Footer.test.tsx index 0640e84..97ac01b 100644 --- a/src/components/Footer.test.tsx +++ b/src/components/Footer.test.tsx @@ -4,6 +4,7 @@ import "@testing-library/jest-dom"; import dlsLogo from "../public/generic/logo-short.svg"; import { Footer, FooterLink, FooterLinks } from "./Footer"; import { ImageColorSchemeSwitch } from "./ImageColorSchemeSwitch"; +import {ThemeProvider} from "../themes/ThemeProvider"; jest.mock("./ImageColorSchemeSwitch"); // @ts-expect-error: doesn't find mockImplementation outside of testing. @@ -17,6 +18,12 @@ describe("Footer", () => { // No copyright text expect(screen.queryByRole("paragraph")).not.toBeInTheDocument(); }); + + test("Should render logo via theme", () => { + render(