test(tui): tighten redraw hotkey review follow-ups

Use explicit repaint patch semantics for Ctrl/Cmd+L and narrow the hotkey assertion to the actual +L entry so unrelated descriptions do not cause false failures.
This commit is contained in:
Brooklyn Nicholson 2026-04-27 12:30:40 -05:00
parent 17029a64e8
commit da6f8449a5
2 changed files with 4 additions and 3 deletions

View file

@ -27,8 +27,9 @@ describe('constants', () => {
})
it('documents Ctrl/Cmd+L as non-destructive redraw', () => {
expect(HOTKEYS.some(([, d]) => d === 'redraw / repaint')).toBe(true)
expect(HOTKEYS.some(([, d]) => d.includes('new session'))).toBe(false)
const hotkey = HOTKEYS.find(([k]) => k.endsWith('+L'))
expect(hotkey).toBeDefined()
expect(hotkey?.[1]).toBe('redraw / repaint')
})
it('TOOL_VERBS maps known tools (verb-only, no emoji)', () => {