Skip to content

Commit a132e11

Browse files
committed
fixed tests
1 parent 0a257eb commit a132e11

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

__tests__/shared/components/Header/__snapshots__/index.jsx.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,19 @@ exports[`Default render 1`] = `
8282
"title": "Competitive Programming",
8383
},
8484
Object {
85-
"href": "/thrive/tracks?track=Data%20Science&tax=",
85+
"href": "/thrive/tracks?track=Data%20Science",
8686
"title": "Data Science",
8787
},
8888
Object {
89-
"href": "/thrive/tracks?track=Design&tax=",
89+
"href": "/thrive/tracks?track=Design",
9090
"title": "Design",
9191
},
9292
Object {
93-
"href": "/thrive/tracks?track=Development&tax=",
93+
"href": "/thrive/tracks?track=Development",
9494
"title": "Development",
9595
},
9696
Object {
97-
"href": "/thrive/tracks?track=QA&tax=",
97+
"href": "/thrive/tracks?track=QA",
9898
"title": "QA",
9999
},
100100
],

src/shared/containers/EDU/Search.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ export default class EDUSearch extends React.Component {
8888
} = this.state;
8989
const title = 'Tutorials And Workshops That Matter | Thrive | Topcoder';
9090
const description = 'Thrive is our vault of content that we have been gathering over the years. It is full of tutorials and workshops that matter. Grow with us!';
91+
let inputSelectedFilter = '0';
92+
if (query.phrase) inputSelectedFilter = '1';
9193

9294
const metaTags = (
9395
<MetaTags
@@ -111,7 +113,10 @@ export default class EDUSearch extends React.Component {
111113
{/* Banner */}
112114
<div className={searchTheme.bannerContainer}>
113115
<div className={searchTheme.searchBarWrapp}>
114-
<SearchBar inputlVal={query.phrase || query.title} inputSelectedFilter={query.phrase ? '1' : '0'} />
116+
<SearchBar
117+
inputlVal={query.phrase || query.title}
118+
inputSelectedFilter={inputSelectedFilter}
119+
/>
115120
</div>
116121
</div>
117122
<div className={searchTheme.shapeBanner} />

0 commit comments

Comments
 (0)