Skip to content

Commit

Permalink
tests: remove uneeded filter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Apr 25, 2024
1 parent 33f3393 commit feda4bc
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions __tests__/search-filters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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", () => {
Expand Down

0 comments on commit feda4bc

Please sign in to comment.