Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Update SearchFilterAccordion.test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
acouch committed Jul 30, 2024
1 parent 6d51e0a commit 57f9c81
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe("SearchFilterAccordion", () => {
it("should not have basic accessibility issues", async () => {
const { container } = render(
<SearchFilterAccordion
options={initialFilterOptions}
filterOptions={initialFilterOptions}
title={title}
queryParamKey={queryParamKey}
query={new Set()}
Expand All @@ -57,7 +57,7 @@ describe("SearchFilterAccordion", () => {
it("displays the correct checkbox labels", () => {
render(
<SearchFilterAccordion
options={initialFilterOptions}
filterOptions={initialFilterOptions}
title={title}
queryParamKey={queryParamKey}
query={new Set()}
Expand All @@ -73,7 +73,7 @@ describe("SearchFilterAccordion", () => {
it("displays select all and clear all correctly", () => {
const { rerender } = render(
<SearchFilterAccordion
options={initialFilterOptions}
filterOptions={initialFilterOptions}
title={title}
queryParamKey={queryParamKey}
query={new Set()}
Expand All @@ -94,7 +94,7 @@ describe("SearchFilterAccordion", () => {
// both select all and clear all should be enabled
rerender(
<SearchFilterAccordion
options={initialFilterOptions}
filterOptions={initialFilterOptions}
title={title}
queryParamKey={queryParamKey}
query={updatedQuery}
Expand All @@ -107,7 +107,7 @@ describe("SearchFilterAccordion", () => {
it("has hidden attribute when collapsed", () => {
render(
<SearchFilterAccordion
options={initialFilterOptions}
filterOptions={initialFilterOptions}
title={title}
queryParamKey={"status"}
query={new Set()}
Expand All @@ -130,7 +130,7 @@ describe("SearchFilterAccordion", () => {
it("checks boxes correctly and updates count", () => {
const { rerender } = render(
<SearchFilterAccordion
options={initialFilterOptions}
filterOptions={initialFilterOptions}
title={title}
queryParamKey={queryParamKey}
query={new Set("")}
Expand All @@ -144,7 +144,7 @@ describe("SearchFilterAccordion", () => {
// both select all and clear all should be enabled
rerender(
<SearchFilterAccordion
options={initialFilterOptions}
filterOptions={initialFilterOptions}
title={title}
queryParamKey={queryParamKey}
query={updatedQuery}
Expand Down

0 comments on commit 57f9c81

Please sign in to comment.