mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 15:13:07 +00:00
Staff see role-ranked shortcuts (advisor portfolio by signal age; CG/candidate by alta priority deficit) via POST mode suggest, without treating empty query as search.
17 lines
642 B
TypeScript
17 lines
642 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
|
|
import { homeSearchUiFocused } from '@/lib/campaignHomeSearchContract'
|
|
|
|
describe('homeSearchUiFocused', () => {
|
|
it('is true when the input is focused without an active query', () => {
|
|
expect(homeSearchUiFocused({ inputFocused: true, isActive: false })).toBe(true)
|
|
})
|
|
|
|
it('is true when the query is active even if the input lost focus', () => {
|
|
expect(homeSearchUiFocused({ inputFocused: false, isActive: true })).toBe(true)
|
|
})
|
|
|
|
it('is false when blurred and query inactive', () => {
|
|
expect(homeSearchUiFocused({ inputFocused: false, isActive: false })).toBe(false)
|
|
})
|
|
})
|