import React from 'react';
import {shallow} from 'sentry-test/enzyme';
import SimilarScoreCard from 'app/components/similarScoreCard';

describe('SimilarScoreCard', function() {
  beforeEach(function() {});

  afterEach(function() {});

  it('renders', function() {
    const wrapper = shallow(<SimilarScoreCard />);
    expect(wrapper).toMatchSnapshot();
  });

  it('renders with score list', function() {
    const wrapper = shallow(
      <SimilarScoreCard
        scoreList={[
          ['exception,message,character-shingles', null],
          ['exception,stacktrace,application-chunks', 0.8],
          ['exception,stacktrace,pairs', 1],
          ['message,message,character-shingles', 0.5],
        ]}
      />
    );
    expect(wrapper).toMatchSnapshot();
  });
});
