import { cleanup } from '@testing-library/react'; import { render } from '../../../utils/theme-render-wrapper'; import { ASSETS_URL } from '../../../consts/common'; import { InfoCardWithAvatar } from './info-card-with-avatar'; import type { InfoCardWithAvatarProps } from './info-card-with-avatar'; afterEach(cleanup); const mockCard: InfoCardWithAvatarProps = { title: 'Title', subtitle: 'Subtitle' }; describe('', () => { it(`Should render with avatarProps`, () => { const { baseElement } = render( ); expect(baseElement).toBeTruthy(); }); it(`Should render without avatarProps`, () => { const { baseElement } = render(); expect(baseElement).toBeTruthy(); }); it(`Should render as not verified user`, () => { const { baseElement } = render( ); expect(baseElement).toBeTruthy(); }); it(`Should render with user initials`, () => { const { baseElement } = render( ); expect(baseElement).toBeTruthy(); }); });