import React from 'react';
import { render } from '@testing-library/react';
import '@testing-library/jest-dom/extend-expect';
import { getSpotlightItems } from '~tests/factories/modules/spotlights.factory';

import TempateOne from '.';

describe('TempateOne Component', () => {
  test('Image-text mode', () => {
    const { container } = render(<TempateOne module={getSpotlightItems(6, 'image')} />);
    expect(container).toBeTruthy();
    expect(container.querySelector('div')).toBeTruthy();
    expect(container.querySelectorAll('p.text')).toBeTruthy();
    expect(container.querySelectorAll('label')).toBeTruthy();
    expect(container.querySelectorAll('a')).toBeTruthy();
  });
});
