File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
redisinsight/ui/src/slices/tests/browser Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 7
7
mockedStore ,
8
8
mockStore ,
9
9
} from 'uiSrc/utils/test-utils'
10
+ import { EditorType } from 'uiSrc/slices/interfaces'
10
11
import successMessages from 'uiSrc/components/notifications/success-messages'
11
12
import { GetRejsonRlResponseDto } from 'apiSrc/modules/browser/rejson-rl/dto'
12
13
import reducer , {
@@ -29,6 +30,7 @@ import reducer, {
29
30
setReJSONDataAction ,
30
31
appendReJSONArrayItemAction ,
31
32
removeReJSONKeyAction ,
33
+ setEditorType ,
32
34
} from '../../browser/rejson'
33
35
import {
34
36
addErrorNotification ,
@@ -405,6 +407,7 @@ describe('rejson slice', () => {
405
407
const expectedActions = [
406
408
loadRejsonBranch ( ) ,
407
409
loadRejsonBranchSuccess ( responsePayload . data ) ,
410
+ setEditorType ( EditorType . Default ) , // and always set editor type to default
408
411
]
409
412
expect ( store . getActions ( ) ) . toEqual ( expectedActions )
410
413
} )
@@ -432,6 +435,7 @@ describe('rejson slice', () => {
432
435
loadRejsonBranch ( ) ,
433
436
loadRejsonBranchFailure ( responsePayload . response . data . message ) ,
434
437
addErrorNotification ( responsePayload as AxiosError ) ,
438
+ setEditorType ( EditorType . Default ) , // and always set editor type to default
435
439
]
436
440
expect ( store . getActions ( ) ) . toEqual ( expectedActions )
437
441
} )
You can’t perform that action at this time.
0 commit comments