File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import "@testing-library/jest-dom";
44import dlsLogo from "../public/generic/logo-short.svg" ;
55import { Footer , FooterLink , FooterLinks } from "./Footer" ;
66import { ImageColorSchemeSwitch } from "./ImageColorSchemeSwitch" ;
7+ import { ThemeProvider } from "../themes/ThemeProvider" ;
78
89jest . mock ( "./ImageColorSchemeSwitch" ) ;
910// @ts -expect-error: doesn't find mockImplementation outside of testing.
@@ -17,6 +18,12 @@ describe("Footer", () => {
1718 // No copyright text
1819 expect ( screen . queryByRole ( "paragraph" ) ) . not . toBeInTheDocument ( ) ;
1920 } ) ;
21+
22+ test ( "Should render logo via theme" , ( ) => {
23+ render ( < ThemeProvider > < Footer logo = "theme" /> </ ThemeProvider > ) ;
24+
25+ expect ( screen . getByRole ( "img" ) ) . toBeInTheDocument ( ) ;
26+ } ) ;
2027
2128 test ( "Should render copyright only" , async ( ) => {
2229 const copyrightText = "add text here" ;
You can’t perform that action at this time.
0 commit comments