fmt(js): npm run fix on merge (#96833)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
595ee92289
commit
7e7fc6445b
@@ -174,6 +174,7 @@ describe('useSlashCompletions', () => {
|
||||
|
||||
const api = harness({ request } as unknown as HermesGateway)
|
||||
const items = await completions(api, 're')
|
||||
|
||||
const groupOf = (command: string) =>
|
||||
(items.find(item => (item.metadata as { command?: string })?.command === command)?.metadata as { group?: string })
|
||||
?.group
|
||||
|
||||
@@ -15,11 +15,7 @@ import {
|
||||
rankSkillCommands,
|
||||
slashCompletionGroup
|
||||
} from '@/lib/desktop-slash-commands'
|
||||
import {
|
||||
$slashCompletionsEpoch,
|
||||
cachedSlashCompletion,
|
||||
hasCachedSlashCompletion
|
||||
} from '@/lib/slash-completion-cache'
|
||||
import { $slashCompletionsEpoch, cachedSlashCompletion, hasCachedSlashCompletion } from '@/lib/slash-completion-cache'
|
||||
import { normalize } from '@/lib/text'
|
||||
import { $sessions } from '@/store/session'
|
||||
|
||||
|
||||
@@ -200,6 +200,7 @@ describe('useSessionTileDelegate resumeTile', () => {
|
||||
messages: [{ id: 'm1', parts: [{ type: 'text', text: 'old' }], role: 'user' }],
|
||||
storedSessionId: 'stored-a'
|
||||
}
|
||||
|
||||
const runtimeIdByStoredSessionIdRef = { current: new Map([['stored-a', 'runtime-a']]) }
|
||||
const sessionStateByRuntimeIdRef = { current: new Map([['runtime-a', stateA]]) }
|
||||
const updateSessionState = vi.fn((_id, updater) => updater(stateA))
|
||||
@@ -221,7 +222,9 @@ describe('useSessionTileDelegate resumeTile', () => {
|
||||
expect(getLatestSessionMessages).toHaveBeenCalled()
|
||||
expect(updateSessionState).toHaveBeenCalled()
|
||||
|
||||
const updater = updateSessionState.mock.calls[0][1] as (state: typeof stateA) => { messages: Array<{ parts?: Array<{ text?: string }> }> }
|
||||
const updater = updateSessionState.mock.calls[0][1] as (state: typeof stateA) => {
|
||||
messages: Array<{ parts?: Array<{ text?: string }> }>
|
||||
}
|
||||
const next = updater(stateA)
|
||||
const texts = next.messages.flatMap(message => (message.parts ?? []).map(part => part.text ?? ''))
|
||||
|
||||
|
||||
@@ -182,9 +182,7 @@ describe('docked tool tile — collapsing keeps the restore chip', () => {
|
||||
it('chevron-collapse of a row-docked tile keeps the tab as a restore handle', () => {
|
||||
render(<LiveTreeGroup index={1} parentAxis="row" />)
|
||||
|
||||
fireEvent.click(
|
||||
globalThis.document.querySelector('[data-tree-group="g-routines"] button[aria-label="Minimize"]')!
|
||||
)
|
||||
fireEvent.click(globalThis.document.querySelector('[data-tree-group="g-routines"] button[aria-label="Minimize"]')!)
|
||||
|
||||
expect(zoneAt(1).minimized).toBe(true)
|
||||
expect(tabEl('hermes-bots:routines')).toBeTruthy()
|
||||
|
||||
Reference in New Issue
Block a user