Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Dec 19, 2024
1 parent d96abce commit aa28f0c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ describe('Autocomplete component', () => {
it('has correct options when using search_numbers, and searching with æøå', () => {
const mockData = [
['Åge Ørn Ærlig', format('12345678901')],
["Andrè O'Neill", format('12345678901')],
["Andrè Ørjåsæter O'Neill", format('12345678901')],
] as DrawerListData

render(
Expand All @@ -710,12 +710,12 @@ describe('Autocomplete component', () => {
).toBe('Åge Ørn Ærlig12 345 678 901')

fireEvent.change(document.querySelector('.dnb-input__input'), {
target: { value: "Andrè O'Neill" },
target: { value: "Andrè Ørjåsæter O'Neill" },
})
expect(
document.querySelectorAll('li.dnb-drawer-list__option')[0]
.textContent
).toBe("Andrè O'Neill12 345 678 901")
).toBe("Andrè Ørjåsæter O'Neill12 345 678 901")
})

it('has correct options when using search_numbers and search_in_word_index=1', () => {
Expand Down

0 comments on commit aa28f0c

Please sign in to comment.