Fix PendingGroupsRow test

This commit is contained in:
Alex Gleason
2023-03-20 21:31:07 -05:00
parent 2196d9e3e5
commit a8be701ea0
3 changed files with 4 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ describe('<PendingGroupRows />', () => {
it('should not render', () => {
renderApp(store);
expect(screen.queryAllByTestId('pending-groups-row')).toHaveLength(0);
expect(screen.queryAllByTestId('pending-items-row')).toHaveLength(0);
});
});
@@ -69,7 +69,7 @@ describe('<PendingGroupRows />', () => {
it('should not render', () => {
renderApp(store);
expect(screen.queryAllByTestId('pending-groups-row')).toHaveLength(0);
expect(screen.queryAllByTestId('pending-items-row')).toHaveLength(0);
});
});
@@ -95,7 +95,7 @@ describe('<PendingGroupRows />', () => {
renderApp(store);
await waitFor(() => {
expect(screen.queryAllByTestId('pending-groups-row')).toHaveLength(1);
expect(screen.queryAllByTestId('pending-items-row')).toHaveLength(1);
});
});
});

View File

@@ -17,7 +17,6 @@ export default () => {
return (
<>
<PendingItemsRow
data-testid='pending-groups-row'
to='/groups/pending-requests'
count={groups.length}
size='lg'