Skip to content

Commit 574765a

Browse files
committed
FE: Added test code for changing default value notation of ConsumerGroups component
1 parent 074e2a0 commit 574765a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

frontend/src/components/ConsumerGroups/__test__/List.spec.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
import React from 'react';
21
import { screen } from '@testing-library/react';
32
import { render } from 'lib/testHelpers';
4-
import List from '../List';
53
import { useConsumerGroups } from 'lib/hooks/api/consumers';
4+
import List from '../List';
65

76
// Mock hooks
87
jest.mock('lib/hooks/api/consumers', () => ({
9-
useConsumerGroups: jest.fn()
8+
useConsumerGroups: jest.fn(),
109
}));
1110

1211
jest.mock('react-router-dom', () => ({
@@ -28,21 +27,21 @@ describe('ConsumerGroups List', () => {
2827
members: 1,
2928
topics: 1,
3029
coordinator: { id: 1 },
31-
state: 'STABLE'
30+
state: 'STABLE',
3231
},
3332
{
3433
groupId: 'group2',
3534
consumerLag: null,
3635
members: 1,
3736
topics: 1,
3837
coordinator: { id: 2 },
39-
state: 'STABLE'
40-
}
38+
state: 'STABLE',
39+
},
4140
],
42-
pageCount: 1
41+
pageCount: 1,
4342
},
4443
isSuccess: true,
45-
isFetching: false
44+
isFetching: false,
4645
}));
4746
});
4847

0 commit comments

Comments
 (0)