File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
redisinsight/ui/src/slices/tests/panels Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { cloneDeep } from 'lodash'
2
+ import { AxiosError } from 'axios'
2
3
import reducer , {
3
4
initialState ,
4
5
getAssistantChatHistoryFailed ,
@@ -36,6 +37,7 @@ import reducer, {
36
37
import { cleanup , initialStateDefault , mockedStore } from 'uiSrc/utils/test-utils'
37
38
import { AiChatMessage , AiChatMessageType , AiChatType } from 'uiSrc/slices/interfaces/aiAssistant'
38
39
import { apiService } from 'uiSrc/services'
40
+ import { addErrorNotification } from 'uiSrc/slices/app/notifications'
39
41
40
42
let store : typeof mockedStore
41
43
@@ -777,6 +779,7 @@ describe('ai assistant slice', () => {
777
779
// Assert
778
780
const expectedActions = [
779
781
getExpertChatHistory ( ) ,
782
+ addErrorNotification ( responsePayload as AxiosError ) ,
780
783
getExpertChatHistoryFailed ( ) ,
781
784
]
782
785
expect ( store . getActions ( ) ) . toEqual ( expectedActions )
You can’t perform that action at this time.
0 commit comments