Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
amundsen_dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Surendar Reddy Mangannagari
amundsen_dev
Commits
c762a8f5
Unverified
Commit
c762a8f5
authored
Mar 12, 2020
by
Tamika Tannis
Committed by
GitHub
Mar 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Caste input to lowercase like we do for SearchBar (#404)
parent
9d73992b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
index.tsx
.../components/SearchPage/SearchFilter/InputFilter/index.tsx
+1
-1
index.spec.tsx
.../SearchPage/SearchFilter/InputFilter/tests/index.spec.tsx
+2
-1
No files found.
amundsen_application/static/js/components/SearchPage/SearchFilter/InputFilter/index.tsx
View file @
c762a8f5
...
...
@@ -54,7 +54,7 @@ export class InputFilter extends React.Component<InputFilterProps, InputFilterSt
};
onInputChange
=
(
e
:
React
.
ChangeEvent
<
HTMLInputElement
>
)
=>
{
this
.
setState
({
value
:
e
.
target
.
value
})
this
.
setState
({
value
:
e
.
target
.
value
.
toLowerCase
()
})
};
render
=
()
=>
{
...
...
amundsen_application/static/js/components/SearchPage/SearchFilter/InputFilter/tests/index.spec.tsx
View file @
c762a8f5
...
...
@@ -115,9 +115,10 @@ describe('InputFilter', () => {
it
(
'sets the value state to e.target.value'
,
()
=>
{
setStateSpy
.
mockClear
()
const
mockValue
=
'mockValue'
;
const
expectedValue
=
'mockvalue'
const
mockEvent
=
{
target
:
{
value
:
mockValue
}};
wrapper
.
instance
().
onInputChange
(
mockEvent
)
expect
(
setStateSpy
).
toHaveBeenCalledWith
({
value
:
mock
Value
});
expect
(
setStateSpy
).
toHaveBeenCalledWith
({
value
:
expected
Value
});
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment