File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
redisinsight/ui/src/components/side-panels/panels/ai-assistant/components/expert-chat Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ describe('ExpertChat', () => {
207
207
const sendEventTelemetryMock = jest . fn ( ) ;
208
208
( sendEventTelemetry as jest . Mock ) . mockImplementation ( ( ) => sendEventTelemetryMock )
209
209
apiService . delete = jest . fn ( ) . mockResolvedValueOnce ( { status : 200 } )
210
- apiService . get = jest . fn ( ) . mockResolvedValueOnce ( { status : 200 } ) ;
210
+ apiService . get = jest . fn ( ) . mockResolvedValueOnce ( { status : 200 , data : [ ] } ) ;
211
211
212
212
( aiExpertChatSelector as jest . Mock ) . mockReturnValue ( {
213
213
loading : false ,
@@ -228,7 +228,7 @@ describe('ExpertChat', () => {
228
228
229
229
expect ( store . getActions ( ) ) . toEqual ( [
230
230
...afterRenderActions ,
231
- getExpertChatHistorySuccess ( ) ,
231
+ getExpertChatHistorySuccess ( [ ] ) ,
232
232
clearExpertChatHistory ( )
233
233
] )
234
234
You can’t perform that action at this time.
0 commit comments