<commit_before>// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP

import React from 'react';
import renderer from 'react/lib/ReactTestRenderer';

import Card from '../../src/js/components/Card';
import FakeIcon from '../mocks/FakeIcon';
import Anchor from '../../src/js/components/Anchor';

// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');

describe('Card', () => {
  it('has correct default options', () => {
    const component = renderer.create(
      <Card thumbnail="http://grommet.github.io/img/carousel-1.png"
        label="Featured Post"
        heading="The Key Steps to Reducing Software Spend"
        text="HPE Software Licensing and Management Solutions can
            help you optimize your software investments through control of
            complex negotiations and renewal processes" />
    );
    let tree = component.toJSON();
    expect(tree).toMatchSnapshot();
  });
  it('renders correctly with a non-default colorIndex', () => {
    const component = renderer.create(
      <Card colorIndex="light-2" />
    );
    let tree = component.toJSON();<commit_msg>Fix: remove the unused components due to removing the video test<commit_after>// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP

import React from 'react';
import renderer from 'react/lib/ReactTestRenderer';

import Card from '../../src/js/components/Card';

// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');

describe('Card', () => {
  it('has correct default options', () => {
    const component = renderer.create(
      <Card thumbnail="http://grommet.github.io/img/carousel-1.png"
        label="Featured Post"
        heading="The Key Steps to Reducing Software Spend"
        text="HPE Software Licensing and Management Solutions can
            help you optimize your software investments through control of
            complex negotiations and renewal processes" />
    );
    let tree = component.toJSON();
    expect(tree).toMatchSnapshot();
  });
  it('renders correctly with a non-default colorIndex', () => {
    const component = renderer.create(
      <Card colorIndex="light-2" />
    );
    let tree = component.toJSON();
{'fraction_non_alphanumeric': 0.12966252220248667, 'fraction_numerical': 0.012433392539964476, 'mean_word_length': 3.3160919540229883, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6417333', 'n_tokens_mistral': 637, 'n_tokens_neox': 607, 'n_words': 185}