()
| 152 | } |
| 153 | |
| 154 | function useChangingChat() { |
| 155 | const [id, setId] = useState('old-chat') |
| 156 | const chat = useChat({ |
| 157 | connection: createMockConnectionAdapter(), |
| 158 | id, |
| 159 | persistence, |
| 160 | }) |
| 161 | |
| 162 | return { ...chat, setId } |
| 163 | } |
| 164 | |
| 165 | const { result } = renderHook(() => useChangingChat()) |
| 166 |
no test coverage detected