mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-21 16:18:55 +00:00
fmt(js): npm run fix on merge (#67258)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
8e9c176117
commit
19bf16c4da
1 changed files with 13 additions and 2 deletions
|
|
@ -2,7 +2,16 @@ import { act, renderHook } from '@testing-library/react'
|
|||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
import type { SessionInfo, SidebarSessionsResponse } from '@/hermes'
|
||||
import { $cronSessions, $messagingSessions, $sessions, $sessionsLoading, setCronSessions, setMessagingSessions, setSessions, setSessionsLoading } from '@/store/session'
|
||||
import {
|
||||
$cronSessions,
|
||||
$messagingSessions,
|
||||
$sessions,
|
||||
$sessionsLoading,
|
||||
setCronSessions,
|
||||
setMessagingSessions,
|
||||
setSessions,
|
||||
setSessionsLoading
|
||||
} from '@/store/session'
|
||||
|
||||
import { useSessionListActions } from './use-session-list-actions'
|
||||
|
||||
|
|
@ -159,7 +168,9 @@ describe('refreshSessions batches slices into one request', () => {
|
|||
const cron = [row('c1', { source: 'cron', title: 'nightly' })]
|
||||
const messaging = [row('m1', { source: 'telegram', title: 'tg chat' })]
|
||||
|
||||
listSidebarSessions.mockResolvedValue(sidebar({ sessions: recents, total: 2, profile_totals: { default: 2 } }, cron, messaging))
|
||||
listSidebarSessions.mockResolvedValue(
|
||||
sidebar({ sessions: recents, total: 2, profile_totals: { default: 2 } }, cron, messaging)
|
||||
)
|
||||
|
||||
const { result } = renderHook(() => useSessionListActions({ profileScope: 'default' }))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue