Skip to content

Commit

Permalink
test(icon): unit test for icon component
Browse files Browse the repository at this point in the history
  • Loading branch information
bsahitya committed May 7, 2024
1 parent cbf5429 commit 06495a3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libs/react-components/src/lib/components/Icon/Icon.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { render } from '@testing-library/react';

import Icon from './index';

describe('Icon', () => {
it('should render successfully', () => {
const { baseElement } = render(<Icon className="fa fa-home" />);
expect(baseElement).toBeTruthy();
});
});

0 comments on commit 06495a3

Please sign in to comment.