fix: 修正 statusbar 測試名稱與 gitea-issue 腳本路徑,版本升至 statusbar 0.0.2、herdr 0.0.3

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
root
2026-10-13 13:45:10 +00:00
co-authored by Claude Sonnet 5.5
parent 58e2b2d26a
commit d5e52175a4
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -91,7 +91,7 @@ describe('format', () => {
})
describe('band', () => {
test('draws one line above the prompt and hides with /hud off', async ($, on) => {
test('draws one line above the prompt and hides with /statusbar off', async ($, on) => {
on('session.model', () => ({ value: 'claude-opus-5-5' }))
on('session.cwd', () => ({ value: '/home/dev/work/luopan' }))
const props = {
@@ -103,12 +103,12 @@ describe('band', () => {
view: {},
}
for (const surface of ['terminal', 'desktop'] as const) {
const ui = await $.ui.mount({ plugin: 'hud', surface, component: 'AbovePrompt', props })
const ui = await $.ui.mount({ plugin: 'statusbar', surface, component: 'AbovePrompt', props })
expect(await ui.find({ type: 'Text', text: /◆ Opus 5\.5/ })).toBeDefined()
expect(await ui.find({ type: 'Text', text: /5h —/ })).toBeDefined()
await ui.unmount()
}
const ran = await $.command.run({ command: 'hud', args: 'off' } as Parameters<typeof $.command.run>[0])
const ran = await $.command.run({ command: 'statusbar', args: 'off' } as Parameters<typeof $.command.run>[0])
expect(JSON.stringify(ran)).toContain('隱藏')
})
})