Skip to content

Commit b836b67

Browse files
committed
fix tests
1 parent 7741b74 commit b836b67

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

redisinsight/ui/src/components/config/Config.spec.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import { appServerInfoSelector, getServerInfo } from 'uiSrc/slices/app/info'
1515
import { processCliClient } from 'uiSrc/slices/cli/cli-settings'
1616
import { getRedisCommands } from 'uiSrc/slices/app/redis-commands'
1717
import { ONBOARDING_FEATURES } from 'uiSrc/components/onboarding-features'
18+
import { getWBGuides } from 'uiSrc/slices/workbench/wb-guides'
19+
import { getWBTutorials } from 'uiSrc/slices/workbench/wb-tutorials'
1820
import Config from './Config'
1921

2022
let store: typeof mockedStore
@@ -59,7 +61,9 @@ describe('Config', () => {
5961
processCliClient(),
6062
getRedisCommands(),
6163
getNotifications(),
62-
getUserConfigSettings()
64+
getWBGuides(),
65+
getWBTutorials(),
66+
getUserConfigSettings(),
6367
]
6468
expect(store.getActions()).toEqual([...afterRenderActions])
6569
})
@@ -89,6 +93,8 @@ describe('Config', () => {
8993
processCliClient(),
9094
getRedisCommands(),
9195
getNotifications(),
96+
getWBGuides(),
97+
getWBTutorials(),
9298
getUserConfigSettings(),
9399
setSettingsPopupState(true),
94100
]

redisinsight/ui/src/pages/workbench/components/wb-view/WBViewWrapper.spec.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ import {
1313
import QueryWrapper from 'uiSrc/components/query'
1414
import { Props as QueryProps } from 'uiSrc/components/query/QueryWrapper'
1515
import { connectedInstanceSelector } from 'uiSrc/slices/instances/instances'
16-
import { sendWBCommandAction } from 'uiSrc/slices/workbench/wb-results'
16+
import { loadWBHistory, sendWBCommandAction } from 'uiSrc/slices/workbench/wb-results'
1717
import { getWBGuides } from 'uiSrc/slices/workbench/wb-guides'
1818
import { getWBTutorials } from 'uiSrc/slices/workbench/wb-tutorials'
1919

20+
import { getWBCustomTutorials } from 'uiSrc/slices/workbench/wb-custom-tutorials'
2021
import WBViewWrapper from './WBViewWrapper'
2122

2223
let store: typeof mockedStore
@@ -104,7 +105,7 @@ describe('WBViewWrapper', () => {
104105
it('should render with SessionStorage', () => {
105106
render(<WBViewWrapper />)
106107

107-
const expectedActions = [getWBGuides(), getWBTutorials()]
108+
const expectedActions = [getWBCustomTutorials(), loadWBHistory()]
108109
expect(clearStoreActions(store.getActions().slice(0, expectedActions.length))).toEqual(
109110
clearStoreActions(expectedActions)
110111
)

0 commit comments

Comments
 (0)