Skip to content

Commit 2b4524e

Browse files
committed
#RI-5724 - fix tests
1 parent 1e95d53 commit 2b4524e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

redisinsight/ui/src/slices/tests/panels/aiAssistant.spec.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { cloneDeep } from 'lodash'
2+
import { AxiosError } from 'axios'
23
import reducer, {
34
initialState,
45
getAssistantChatHistoryFailed,
@@ -36,6 +37,7 @@ import reducer, {
3637
import { cleanup, initialStateDefault, mockedStore } from 'uiSrc/utils/test-utils'
3738
import { AiChatMessage, AiChatMessageType, AiChatType } from 'uiSrc/slices/interfaces/aiAssistant'
3839
import { apiService } from 'uiSrc/services'
40+
import { addErrorNotification } from 'uiSrc/slices/app/notifications'
3941

4042
let store: typeof mockedStore
4143

@@ -777,6 +779,7 @@ describe('ai assistant slice', () => {
777779
// Assert
778780
const expectedActions = [
779781
getExpertChatHistory(),
782+
addErrorNotification(responsePayload as AxiosError),
780783
getExpertChatHistoryFailed(),
781784
]
782785
expect(store.getActions()).toEqual(expectedActions)

0 commit comments

Comments
 (0)