Skip to content

Commit 64c864c

Browse files
committed
fix(app overview): enable search for numeric and special characters (#1179)
#1177
1 parent 1ce95d8 commit 64c864c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/types/Patterns.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import {
3232
isSearchUserEmail,
3333
isValidAppOverviewSearch,
3434
isValidPhone,
35+
isValidAppOverviewSearch,
3536
} from './Patterns'
3637

3738
const TESTDATA = {
@@ -379,4 +380,12 @@ describe('Input Pattern Tests', () => {
379380
expect(isValidPhone(expr)).toBe(false)
380381
})
381382
})
383+
it('validate appoverview search', () => {
384+
TESTDATA.appOverview.valid.forEach((expr) => {
385+
expect(isValidAppOverviewSearch(expr)).toBe(true)
386+
})
387+
TESTDATA.appOverview.invalid.forEach((expr) => {
388+
expect(isValidAppOverviewSearch(expr)).toBe(false)
389+
})
390+
})
382391
})

0 commit comments

Comments
 (0)