Skip to content

Commit d55fd59

Browse files
committed
* #RI-3673 - fix tests
1 parent 0eab61d commit d55fd59

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

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

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

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

141141
expect(apiServiceMock.mock.calls[0]).toEqual([
142-
'/instance//keys/get-metadata',
143-
{ keys: ['key1', 'key2', 'key3'] },
144-
params,
145-
])
146-
147-
expect(apiServiceMock.mock.calls[1]).toEqual([
148142
'/instance//keys/get-metadata',
149143
{ keys: ['key1'] },
150144
params,
151145
])
152146

153-
expect(apiServiceMock.mock.calls[2]).toEqual([
147+
expect(apiServiceMock.mock.calls[1]).toEqual([
154148
'/instance//keys/get-metadata',
155149
{ keys: ['key1', 'key2', 'key3'] },
156150
params,

0 commit comments

Comments
 (0)