import { render } from '../../utils/theme-render-wrapper';
import { BrowserRouter } from 'react-router-dom';

import { SidebarRight } from './sidebar-right';
import mockData, { mockNotVerified, mockUserOnline } from './__mocks__/mockSidebarRight';

describe('<SidebarRight />', () => {
  it('Should render successfully', () => {
    const { baseElement } = render(
      <BrowserRouter>
        <SidebarRight {...mockData} />
      </BrowserRouter>
    );
    expect(baseElement).toBeTruthy();
  });

  it('Should render not verified user', () => {
    const { baseElement } = render(
      <BrowserRouter>
        <SidebarRight {...mockNotVerified} />
      </BrowserRouter>
    );
    expect(baseElement).toBeTruthy();
  });

  it('Should render user online', () => {
    const { baseElement } = render(
      <BrowserRouter>
        <SidebarRight {...mockUserOnline} />
      </BrowserRouter>
    );
    expect(baseElement).toBeTruthy();
  });
});
