Skip to content

Commit 9f4a113

Browse files
committed
#5852 - update mock response
1 parent 94c763b commit 9f4a113

File tree

1 file changed

+2
-2
lines changed
  • redisinsight/ui/src/components/side-panels/panels/ai-assistant/components/expert-chat

1 file changed

+2
-2
lines changed

redisinsight/ui/src/components/side-panels/panels/ai-assistant/components/expert-chat/ExpertChat.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ describe('ExpertChat', () => {
207207
const sendEventTelemetryMock = jest.fn();
208208
(sendEventTelemetry as jest.Mock).mockImplementation(() => sendEventTelemetryMock)
209209
apiService.delete = jest.fn().mockResolvedValueOnce({ status: 200 })
210-
apiService.get = jest.fn().mockResolvedValueOnce({ status: 200 });
210+
apiService.get = jest.fn().mockResolvedValueOnce({ status: 200, data: [] });
211211

212212
(aiExpertChatSelector as jest.Mock).mockReturnValue({
213213
loading: false,
@@ -228,7 +228,7 @@ describe('ExpertChat', () => {
228228

229229
expect(store.getActions()).toEqual([
230230
...afterRenderActions,
231-
getExpertChatHistorySuccess(),
231+
getExpertChatHistorySuccess([]),
232232
clearExpertChatHistory()
233233
])
234234

0 commit comments

Comments
 (0)