diff --git a/nix/tests/module.nix b/nix/tests/module.nix index fcd7b78..9f5dfd9 100644 --- a/nix/tests/module.nix +++ b/nix/tests/module.nix @@ -67,14 +67,26 @@ pkgs.runCommand "tide-module-test" { } '' test -f ${landingPage}/${stylesheetFileName} test ! -e ${landingPage}/styles.css test -f ${landingPage}/robots.txt - test -f ${landingPage}/assets/rav-hirsch-1847.jpg - test -f ${landingPage}/assets/rav-hirsch-1847.webp + test -f ${landingPage}/assets/rav-hirsch-later-life.jpg + test -f ${landingPage}/assets/rav-hirsch-later-life.webp + test -f ${landingPage}/assets/social-preview-hirsch-later-life.png + test ! -e ${landingPage}/assets/rav-hirsch-1847.jpg + test ! -e ${landingPage}/assets/rav-hirsch-1847.webp ${pkgs.diffutils}/bin/cmp \ ${../../site/styles.css} \ ${landingPage}/${stylesheetFileName} ${pkgs.gnugrep}/bin/grep -F \ 'href="/${stylesheetFileName}"' \ ${landingPage}/index.html + ${pkgs.gnugrep}/bin/grep -F \ + 'href="/assets/rav-hirsch-later-life.webp"' \ + ${landingPage}/index.html + ${pkgs.gnugrep}/bin/grep -F \ + 'src="/assets/rav-hirsch-later-life.jpg"' \ + ${landingPage}/index.html + ${pkgs.gnugrep}/bin/grep -F \ + 'assets/social-preview-hirsch-later-life.png' \ + ${landingPage}/index.html if ${pkgs.gnugrep}/bin/grep -F \ 'href="/styles.css"' \ ${landingPage}/index.html; then