MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / homeTarget

Function homeTarget

packages/app-core/src/lib/vim-nav.test.ts:64–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62
63describe('shouldYieldToHomeNav (#273 — Space leader must work on the home view)', () => {
64 const homeTarget = (): HTMLElement => {
65 const home = el('<div data-home-nav><button data-home-item>Recent</button></div>')
66 return home.querySelector('button') as HTMLElement
67 }
68
69 it('yields for a non-leader key (home view owns j/k/arrows/Enter)', () => {
70 expect(shouldYieldToHomeNav(homeTarget(), false, false)).toBe(true)

Callers 1

vim-nav.test.tsFile · 0.85

Calls 1

elFunction · 0.85

Tested by

no test coverage detected