Skip to content

Commit fa8c2eb

Browse files
committed
* #RI-3672 - fix tests
1 parent 68e5c68 commit fa8c2eb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

redisinsight/ui/src/pages/browser/components/key-list/KeyList.spec.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,21 @@ describe('KeyList', () => {
136136
/>)
137137

138138
await waitFor(async () => {
139-
expect(apiServiceMock).toBeCalledTimes(2)
139+
expect(apiServiceMock).toBeCalledTimes(3)
140140

141141
expect(apiServiceMock.mock.calls[0]).toEqual([
142142
'/instance//keys/get-metadata',
143-
{ keys: ['key1'] },
143+
{ keys: ['key1', 'key2', 'key3'] },
144144
params,
145145
])
146146

147147
expect(apiServiceMock.mock.calls[1]).toEqual([
148+
'/instance//keys/get-metadata',
149+
{ keys: ['key1'] },
150+
params,
151+
])
152+
153+
expect(apiServiceMock.mock.calls[2]).toEqual([
148154
'/instance//keys/get-metadata',
149155
{ keys: ['key1', 'key2', 'key3'] },
150156
params,

0 commit comments

Comments
 (0)