mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
SearchableInput.spec.js whitespace replacement
This commit is contained in:
parent
6e5e15097e
commit
52306aeed4
@ -120,5 +120,17 @@ describe('SearchableInput.vue', () => {
|
|||||||
query: { search: 'ab' },
|
query: { search: 'ab' },
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('replaces irregular whitespace with a single space', async () => {
|
||||||
|
select.element.value = 'peter \
|
||||||
|
lustig'
|
||||||
|
select.trigger('input')
|
||||||
|
select.trigger('keyup.enter')
|
||||||
|
expect(mocks.$router.push).toHaveBeenCalledWith({
|
||||||
|
path: '/search/search-results',
|
||||||
|
query: { search: 'peter lustig' },
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user