Skip to content

Commit

Permalink
add unit test for main component
Browse files Browse the repository at this point in the history
  • Loading branch information
zuies committed Jun 30, 2023
1 parent d86ab79 commit 16c6388
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { render, screen } from '@testing-library/react';
import ActiveMemberBreakdown from './ActiveMemberBreakdown';

describe('ActiveMemberBreakdown', () => {
it('renders the component', () => {
render(<ActiveMemberBreakdown />);

// Assert the component is rendered
const component = screen.getByText('Members breakdown');
expect(component).toBeInTheDocument();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default function ActiveMemberBreakdown() {
</div>
</div>
</div>
<div className={clsx(!isExpanded ? 'hidden' : 'flex justify-end')}>
<div className={clsx(!isExpanded ? 'hidden' : 'flex justify-end mb-8')}>
<CustomPagination
totalItems={fetchedData.totalResults}
itemsPerPage={Math.ceil(
Expand Down

0 comments on commit 16c6388

Please sign in to comment.