mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 06:43:06 +00:00
fix(B136): resolve listOmniboxB128 merge conflict markers for CI
This commit is contained in:
parent
764343da8e
commit
a2e952b3a2
1 changed files with 17 additions and 18 deletions
|
|
@ -269,7 +269,23 @@ describe('list omnibox adapters (B128)', () => {
|
|||
expect(applied).toEqual({ kind: 'url', state: { page: 1, q: 'ana' } })
|
||||
})
|
||||
|
||||
<<<<<<< HEAD
|
||||
it('search-only omnibox clears and removes chips', () => {
|
||||
expect(buildSearchOnlyOmniboxSuggestions('')).toEqual([])
|
||||
|
||||
const removed = removeSearchOnlyOmniboxChip({
|
||||
state: { q: 'x', page: 2 },
|
||||
chipId: 'q',
|
||||
withPageReset: (next) => ({ ...next, page: 1 }),
|
||||
})
|
||||
expect(removed).toEqual({ kind: 'url', state: { page: 1, q: undefined } })
|
||||
|
||||
const cleared = clearSearchOnlyOmnibox({
|
||||
state: { q: 'x' },
|
||||
cleared: {},
|
||||
})
|
||||
expect(cleared).toEqual({ kind: 'clear', state: {} })
|
||||
})
|
||||
|
||||
it('advisor toggles municipality portfolio filter and suggests by name', () => {
|
||||
const base = parseAdvisorListParams({})
|
||||
const applied = applyAdvisorOmniboxSuggestion({
|
||||
|
|
@ -292,22 +308,5 @@ describe('list omnibox adapters (B128)', () => {
|
|||
})
|
||||
const suggestions = filterAdvisorOmniboxSuggestions(seeds, 'feira')
|
||||
expect(suggestions.some((entry) => entry.group === 'Município (carteira)')).toBe(true)
|
||||
=======
|
||||
it('search-only omnibox clears and removes chips', () => {
|
||||
expect(buildSearchOnlyOmniboxSuggestions('')).toEqual([])
|
||||
|
||||
const removed = removeSearchOnlyOmniboxChip({
|
||||
state: { q: 'x', page: 2 },
|
||||
chipId: 'q',
|
||||
withPageReset: (next) => ({ ...next, page: 1 }),
|
||||
})
|
||||
expect(removed).toEqual({ kind: 'url', state: { page: 1, q: undefined } })
|
||||
|
||||
const cleared = clearSearchOnlyOmnibox({
|
||||
state: { q: 'x' },
|
||||
cleared: {},
|
||||
})
|
||||
expect(cleared).toEqual({ kind: 'clear', state: {} })
|
||||
>>>>>>> c2a8e54b (test(B128): cover search-only omnibox exports for knip graph)
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue