Skip to content

Commit

Permalink
fix added missing props to searchArea tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaspalma committed Jan 20, 2023
1 parent 1d031bd commit 2907e99
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion src/components/HomePage/SearchArea/SearchArea.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ describe("SearchArea", () => {
offers={[]}
fields={[]}
technologies={[]}
setShowJobDurationSlider={() => { }}
setTechs={() => { }}
setJobDuration={() => { }}
setFields={() => { }}
setJobType={() => { }}
setSearchValue={() => { }}
/>
</RouteWrappedContent>,
{ initialState, theme }
Expand All @@ -80,6 +86,12 @@ describe("SearchArea", () => {
searchValue={"somevalue"}
fields={[]}
technologies={[]}
setShowJobDurationSlider={() => { }}
setTechs={() => { }}
setJobDuration={() => { }}
setFields={() => { }}
setJobType={() => { }}
setSearchValue={() => { }}
/>
</RouteWrappedContent>,
{ initialState, theme }
Expand All @@ -93,6 +105,12 @@ describe("SearchArea", () => {
<SearchArea
fields={["field1", "field2"]}
technologies={[]}
setShowJobDurationSlider={() => { }}
setTechs={() => { }}
setJobDuration={() => { }}
setFields={() => { }}
setJobType={() => { }}
setSearchValue={() => { }}
/>
</RouteWrappedContent>,
{ initialState, theme }
Expand All @@ -106,6 +124,12 @@ describe("SearchArea", () => {
<SearchArea
fields={[]}
technologies={["tech1", "tech2"]}
setShowJobDurationSlider={() => { }}
setTechs={() => { }}
setJobDuration={() => { }}
setFields={() => { }}
setJobType={() => { }}
setSearchValue={() => { }}
/>
</RouteWrappedContent>,
{ initialState, theme }
Expand All @@ -120,6 +144,12 @@ describe("SearchArea", () => {
fields={[]}
technologies={[]}
jobType={"JOB"}
setShowJobDurationSlider={() => { }}
setTechs={() => { }}
setJobDuration={() => { }}
setFields={() => { }}
setJobType={() => { }}
setSearchValue={() => { }}
/>
</RouteWrappedContent>,
{ initialState, theme }
Expand All @@ -133,7 +163,13 @@ describe("SearchArea", () => {
<SearchArea
fields={[]}
technologies={[]}
setShowJobDurationSlider={true}
showJobDurationSlider={true}
setShowJobDurationSlider={() => { }}
setTechs={() => { }}
setJobDuration={() => { }}
setFields={() => { }}
setJobType={() => { }}
setSearchValue={() => { }}
/>
</RouteWrappedContent>,
{ initialState, theme }
Expand Down

0 comments on commit 2907e99

Please sign in to comment.