mirror of
https://github.com/towfiqi/serpbear
synced 2025-06-26 18:15:54 +00:00
10 lines
306 B
TypeScript
10 lines
306 B
TypeScript
import { render } from '@testing-library/react';
|
|
import Icon from '../../components/common/Icon';
|
|
|
|
describe('Icon Component', () => {
|
|
it('renders without crashing', async () => {
|
|
render(<Icon type='logo' size={24} />);
|
|
expect(document.querySelector('svg')).toBeInTheDocument();
|
|
});
|
|
});
|