UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

23 lines (19 loc) 633 B
import { act, renderHook } from '@testing-library/react'; import { DEFAULT_USER_AVATAR_URL } from '@/const/meta'; import { shareService } from '@/services/share'; import { useChatStore } from '@/store/chat'; import { messageMapKey } from '@/store/chat/utils/messageMapKey'; import { ChatMessage } from '@/types/message'; afterEach(() => { vi.restoreAllMocks(); }); describe('shareSlice actions', () => { describe('genShareUrl', () => { it('TODO', async () => { const { result } = renderHook(() => useChatStore()); await act(async () => { await result.current.genShareUrl(); }); }); }); });