import { render } from '../../../utils/theme-render-wrapper';

import { ASSETS_URL } from '../../../consts/common';
import ApplicationUserCard from './application-user-card';

const mockApplicationUserCard = {
  isFavorite: false,
  tagText: 'https',
  tagColor: '#4DC9F6',
  icon: `${ASSETS_URL}/images/apps/icon_appSSH.svg`,
  appName: 'Amazon P81',
  appVersion: '10.0.0.5',
  connectHandler: () => alert('Update')
};

describe('<ApplicationUserCard />', () => {
  it('should render successfully', () => {
    const { baseElement } = render(<ApplicationUserCard {...mockApplicationUserCard} />);
    expect(baseElement).toBeTruthy();
  });
});
