mirror of
https://github.com/stablyai/orca.git
synced 2026-09-30 08:03:12 +00:00
test(native-chat): use one store mock for link actions
This commit is contained in:
@@ -27,7 +27,7 @@ vi.mock('./use-native-chat-file-link-click', () => ({
|
||||
useNativeChatFileLinkClick: (context: unknown) => (context ? mocks.openFileLink : undefined)
|
||||
}))
|
||||
|
||||
vi.mock('../../store', () => ({
|
||||
vi.mock('@/store', () => ({
|
||||
useAppStore: Object.assign(
|
||||
(selector: (state: Record<string, unknown>) => unknown) =>
|
||||
selector({ openSettingsPage: vi.fn(), openSettingsTarget: vi.fn() }),
|
||||
@@ -35,11 +35,6 @@ vi.mock('../../store', () => ({
|
||||
)
|
||||
}))
|
||||
|
||||
vi.mock('@/store', () => ({
|
||||
useAppStore: (selector: (state: Record<string, unknown>) => unknown) =>
|
||||
selector({ openSettingsPage: vi.fn(), openSettingsTarget: vi.fn() })
|
||||
}))
|
||||
|
||||
vi.mock('@/components/ui/tooltip', () => ({
|
||||
Tooltip: ({ children }: { children: ReactNode }) => children,
|
||||
TooltipTrigger: ({ children }: { children: ReactNode }) => children,
|
||||
|
||||
Reference in New Issue
Block a user