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