mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-11 03:31:55 +00:00
fix(ui): reduce status-line jitter while scrolling
This commit is contained in:
parent
a869a523ee
commit
e45df2e81e
4 changed files with 49 additions and 4 deletions
18
ui-tui/src/__tests__/statusBarTicker.test.ts
Normal file
18
ui-tui/src/__tests__/statusBarTicker.test.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { padVerb, VERB_PAD_LEN } from '../components/appChrome.js'
|
||||
import { VERBS } from '../content/verbs.js'
|
||||
|
||||
describe('FaceTicker verb padding', () => {
|
||||
it('pads every verb to the same width', () => {
|
||||
for (const verb of VERBS) {
|
||||
expect(padVerb(verb)).toHaveLength(VERB_PAD_LEN)
|
||||
}
|
||||
})
|
||||
|
||||
it('keeps trailing ellipsis attached', () => {
|
||||
for (const verb of VERBS) {
|
||||
expect(padVerb(verb).startsWith(`${verb}…`)).toBe(true)
|
||||
}
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue