From feda4bc6dadca433638c0f32846de4871e113413 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Wed, 24 Apr 2024 23:14:49 -0700 Subject: [PATCH] tests: remove uneeded filter tests --- __tests__/search-filters.test.ts | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/__tests__/search-filters.test.ts b/__tests__/search-filters.test.ts index d771b3b..106d779 100644 --- a/__tests__/search-filters.test.ts +++ b/__tests__/search-filters.test.ts @@ -132,15 +132,6 @@ describe("Search Filters", () => { expect(result.every((course) => !course.async)).toBe(true); }); - test("only instant enrollment filters correctly", async () => { - const result = filterData(data.data, { - ...defaultFilterValues, - enrollment: [true], - }); - - expect(result.every((course) => course.instantEnrollment)).toBe(true); - }); - test("only available seats filters correctly", async () => { const result = filterData(data.data, { ...defaultFilterValues, @@ -166,22 +157,6 @@ describe("Search Filters", () => { "placeholder sending institution 1", ); }); - - test("min units filters correctly", async () => { - const result = filterData(data.data, { - ...defaultFilterValues, - min: 5, - }); - expect(result.every((course) => course.units >= 5)).toBe(true); - }); - - test("max units filters correctly", async () => { - const result = filterData(data.data, { - ...defaultFilterValues, - max: 5, - }); - expect(result.every((course) => course.units <= 5)).toBe(true); - }); }); describe("Filter Utils' Time Utilities", () => {