mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-17 12:43:05 +00:00
Remove the Buscar step with debounced search, immediate select navigation, and pending UI; update roadmap, plan, and notebook.
16 lines
670 B
TypeScript
16 lines
670 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
|
|
import { shouldUpdatePlazaSearchUrl } from '@/utilities/plazaUi'
|
|
|
|
describe('shouldUpdatePlazaSearchUrl', () => {
|
|
it('returns false when canonical q matches the current URL q', () => {
|
|
expect(shouldUpdatePlazaSearchUrl('salvador', 'salvador')).toBe(false)
|
|
expect(shouldUpdatePlazaSearchUrl(' salvador ', 'salvador')).toBe(false)
|
|
})
|
|
|
|
it('returns true when q differs or is newly set', () => {
|
|
expect(shouldUpdatePlazaSearchUrl('salv', 'salvador')).toBe(true)
|
|
expect(shouldUpdatePlazaSearchUrl('salvador', undefined)).toBe(true)
|
|
expect(shouldUpdatePlazaSearchUrl('', 'salvador')).toBe(true)
|
|
})
|
|
})
|