File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
frontend/src/components/ConsumerGroups/__test__ Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1- import React from 'react' ;
21import { screen } from '@testing-library/react' ;
32import { render } from 'lib/testHelpers' ;
4- import List from '../List' ;
53import { useConsumerGroups } from 'lib/hooks/api/consumers' ;
4+ import List from '../List' ;
65
76// Mock hooks
87jest . mock ( 'lib/hooks/api/consumers' , ( ) => ( {
9- useConsumerGroups : jest . fn ( )
8+ useConsumerGroups : jest . fn ( ) ,
109} ) ) ;
1110
1211jest . 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
You can’t perform that action at this time.
0 commit comments