diff --git a/frontend/tests/components/search/SearchSortBy.test.tsx b/frontend/tests/components/search/SearchSortBy.test.tsx index 72e63c1b25..e53103ac02 100644 --- a/frontend/tests/components/search/SearchSortBy.test.tsx +++ b/frontend/tests/components/search/SearchSortBy.test.tsx @@ -44,8 +44,6 @@ describe("SearchSortBy", () => { target: { value: "opportunityTitleDesc" }, }); - expect( - screen.getByText("Opportunity Title (Z to A)"), - ).toBeInTheDocument(); + expect(screen.getByText("Opportunity Title (Z to A)")).toBeInTheDocument(); }); }); diff --git a/frontend/tests/e2e/search/search.spec.ts b/frontend/tests/e2e/search/search.spec.ts index 993a0ffffb..25b552481b 100644 --- a/frontend/tests/e2e/search/search.spec.ts +++ b/frontend/tests/e2e/search/search.spec.ts @@ -212,9 +212,11 @@ test.describe("Search page tests", () => { await waitForSearchResultsInitialLoad(page); // Verify that page 1 is highlighted - currentPageButton = page.locator(".usa-pagination__button.usa-current").first(); + currentPageButton = page + .locator(".usa-pagination__button.usa-current") + .first(); await expect(currentPageButton).toHaveAttribute("aria-label", "Page 1"); - + // It should not have a page query param set expectURLContainsQueryParam(page, "page", "1", false); }); diff --git a/frontend/tests/hooks/useSearchParamUpdater.test.ts b/frontend/tests/hooks/useSearchParamUpdater.test.ts index a8c4fd1bcd..d6ec44b46a 100644 --- a/frontend/tests/hooks/useSearchParamUpdater.test.ts +++ b/frontend/tests/hooks/useSearchParamUpdater.test.ts @@ -15,7 +15,6 @@ jest.mock("next/navigation", () => ({ })); describe("useSearchParamUpdater", () => { - it("updates a singular param and pushes new path", async () => { const { result } = renderHook(() => useSearchParamUpdater()); @@ -49,10 +48,9 @@ describe("useSearchParamUpdater", () => { result.current.updateQueryParams(statuses, "status", "test"); await waitFor(() => { - expect(routerPush).toHaveBeenCalledWith( - "/test?query=test", - { scroll: false }, - ); + expect(routerPush).toHaveBeenCalledWith("/test?query=test", { + scroll: false, + }); }); }); });