Skip to content

Commit 86bb380

Browse files
committed
chore: add test cases
1 parent 5023933 commit 86bb380

2 files changed

Lines changed: 2 additions & 233 deletions

File tree

src/components/Search/SearchAutocompleteList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ function SearchAutocompleteList(
266266
CONST.SEARCH.SYNTAX_FILTER_KEYS.ASSIGNEE,
267267
CONST.SEARCH.SYNTAX_FILTER_KEYS.PAYER,
268268
CONST.SEARCH.SYNTAX_FILTER_KEYS.EXPORTER,
269-
] as const;
269+
] as SearchFilterKey[];;
270270

271-
if (lastRange && nameFields.includes(lastRange.key as TupleToUnion<typeof nameFields>)) {
271+
if (lastRange && nameFields.includes(lastRange.key)) {
272272
const afterLastRange = autocompleteQueryValue.substring(lastRange.start + lastRange.length);
273273
const continuationMatch = afterLastRange.match(/^\s+(\w+)/);
274274

tests/unit/SearchAutocompleteContinuationTest.ts

Lines changed: 0 additions & 231 deletions
This file was deleted.

0 commit comments

Comments
 (0)