Skip to content

Commit d4179e7

Browse files
committed
* #RIVS-279 - [Regression] Cluster databases has 'i' icon before Host on Edit db view without tooltip
* #RIVS-280 - [Regression] CLI returns errors for cluster db
1 parent 604867d commit d4179e7

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

src/webviews/src/modules/cli/hooks/cli-output/tests/useCliOutput.spec.tsx

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,11 @@ describe('thunks', () => {
219219
it('call both sendCliClusterCommandAction and sendCliCommandSuccess when response status is successed', async () => {
220220
// Arrange
221221
const command = constants.COMMAND
222-
const data: any[] = [
223-
{
224-
response: '(nil)',
225-
status: CommandExecutionStatus.Success,
226-
node: { host: '127.0.0.1', port: 7002, slot: 6918 },
227-
},
228-
]
222+
const data: any = {
223+
response: '(nil)',
224+
status: CommandExecutionStatus.Success,
225+
node: { host: '127.0.0.1', port: 7002, slot: 6918 },
226+
}
229227
const responsePayload = { data, status: 200 }
230228

231229
apiService.post = vi.fn().mockResolvedValue(responsePayload)
@@ -241,13 +239,12 @@ describe('thunks', () => {
241239
it('call both sendCliClusterCommandAction and sendCliCommandSuccess when response status is fail', async () => {
242240
// Arrange
243241
const command = constants.COMMAND
244-
const data: any[] = [
245-
{
246-
response: null,
247-
status: CommandExecutionStatus.Success,
248-
node: { host: '127.0.0.1', port: 7002, slot: 6918 },
249-
},
250-
]
242+
const data: any[] = {
243+
response: null,
244+
status: CommandExecutionStatus.Success,
245+
node: { host: '127.0.0.1', port: 7002, slot: 6918 },
246+
}
247+
251248
const responsePayload = { data, status: 200 }
252249

253250
apiService.post = vi.fn().mockResolvedValue(responsePayload)

0 commit comments

Comments
 (0)