diff --git a/__tests__/search-filters.test.ts b/__tests__/search-filters.test.ts index 6c15277..58934fa 100644 --- a/__tests__/search-filters.test.ts +++ b/__tests__/search-filters.test.ts @@ -1,9 +1,9 @@ -import { FilterValues } from "@/components/search/search"; +import { FilterValues } from "@/components/search/Search"; import { endsBefore, filterData, startsAfter, -} from "@/components/search/filterUtils"; +} from "@/components/search/filter-utils"; import "@testing-library/jest-dom"; const data = { @@ -81,7 +81,7 @@ const defaultFilterValues: FilterValues = { enrollment: [false], available: [false], start: "2023-12-20", - end: undefined, + end: "", institution: "Any Institution", min: 0, max: 20, @@ -192,8 +192,8 @@ describe("Search Filters", () => { }); describe("Filter Utils' Time Utilities", () => { - test("startsAfter undefined", async () => { - const result = startsAfter(undefined, data.courses[0]); + test("startsAfter none", async () => { + const result = startsAfter("", data.courses[0]); expect(result).toBe(true); }); @@ -207,8 +207,8 @@ describe("Filter Utils' Time Utilities", () => { expect(result).toBe(false); }); - test("endsBefore undefined", async () => { - const result = endsBefore(undefined, data.courses[0]); + test("endsBefore none", async () => { + const result = endsBefore("", data.courses[0]); expect(result).toBe(true); }); diff --git a/app/layout.tsx b/app/layout.tsx index b1f8c00..115f7fb 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,8 +1,8 @@ import type { Metadata } from "next"; import { Inter } from "next/font/google"; import "./globals.css"; -import Header from "@/components/header"; -import Footer from "@/components/footer"; +import Header from "@/components/Header"; +import Footer from "@/components/Footer"; import GoogleAnalytics from "@/components/GoogleAnalytics"; import { Toaster } from "@/components/ui/toaster"; @@ -12,6 +12,7 @@ export const metadata: Metadata = { title: "GE-Z", description: "GE-Z sources data from Assist.org and CVC.edu to find the perfect community college courses for you to take.", + metadataBase: new URL("https://ge-z.vercel.app"), openGraph: { title: "GE-Z", description: diff --git a/app/page.tsx b/app/page.tsx index fcafec2..fcd7f03 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,4 +1,4 @@ -import Hero from "@/components/hero/hero"; +import Hero from "@/components/hero/Hero"; export default function Home() { return ( diff --git a/app/search/page.tsx b/app/search/page.tsx index ecf1944..75bde11 100644 --- a/app/search/page.tsx +++ b/app/search/page.tsx @@ -1,4 +1,4 @@ -import Search from "@/components/search/search"; +import Search from "@/components/search/Search"; import React from "react"; const SearchPage = () => { diff --git a/components/footer.tsx b/components/Footer.tsx similarity index 100% rename from components/footer.tsx rename to components/Footer.tsx diff --git a/components/header.tsx b/components/Header.tsx similarity index 100% rename from components/header.tsx rename to components/Header.tsx diff --git a/components/hero/hero.tsx b/components/hero/Hero.tsx similarity index 100% rename from components/hero/hero.tsx rename to components/hero/Hero.tsx diff --git a/components/search/blurb.tsx b/components/search/Blurb.tsx similarity index 91% rename from components/search/blurb.tsx rename to components/search/Blurb.tsx index b458de2..0c16f2b 100644 --- a/components/search/blurb.tsx +++ b/components/search/Blurb.tsx @@ -1,12 +1,12 @@ import React from "react"; -import { CollegeObject, FilterValues } from "./search"; +import { CollegeObject, FilterValues } from "./Search"; interface BlurbProps { filterData: ( data: CollegeObject[], filterValues: FilterValues, ) => CollegeObject[]; - data: CollegeObject[]; + data: CollegeObject[] | undefined; filterValues: FilterValues; searchUniversity: string; searchGE: string; @@ -26,7 +26,8 @@ const SearchBlurb = (props: BlurbProps) => {