All files / components/Nav Footer.jsx

100% Statements 1/1
100% Branches 0/0
100% Functions 1/1
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58    12x                                                                                                              
import { Container } from "react-bootstrap";
 
export const space = " ";
 
export default function Footer(systemInfo) {
  return (
    <footer className="bg-light pt-3 pt-md-4 pb-4 pb-md-5" data-testid="Footer">
      <Container>
        <p>
          This app is a class project of{space}
          <a
            data-testid="footer-class-website-link"
            href="https://ucsb-cs156.github.io"
            target="_blank"
            rel="noopener noreferrer"
          >
            CMPSC 156
          </a>{" "}
          at{space}
          <a href="https://ucsb.edu/">UCSB</a>. Check out the source code on
          {space}
          {systemInfo.systemInfo && (
            <a
              data-testid="footer-source-code-link"
              href={systemInfo.systemInfo.sourceRepo}
              target="_blank"
              rel="noopener noreferrer"
            >
              GitHub
            </a>
          )}
          {!systemInfo.systemInfo && (
            <a
              data-testid="footer-source-code-link"
              href={"https://github.com/ucsb-cs156/proj-dining"}
              target="_blank"
              rel="noopener noreferrer"
            >
              GitHub
            </a>
          )}
          ! This is not an official source of UCSB dining commons information.
          An official source can be found{space}
          <a
            data-testid="footer-course-search-link"
            href="https://apps.dining.ucsb.edu/menu/day"
            target="_blank"
            rel="noopener noreferrer"
          >
            here
          </a>
          .
        </p>
      </Container>
    </footer>
  );
}