similarScoreCard.spec.jsx 789 B

123456789101112131415161718192021222324252627282930
  1. import React from 'react';
  2. import {mountWithTheme} from 'sentry-test/enzyme';
  3. import SimilarScoreCard from 'app/components/similarScoreCard';
  4. describe('SimilarScoreCard', function() {
  5. beforeEach(function() {});
  6. afterEach(function() {});
  7. it('renders', function() {
  8. const wrapper = mountWithTheme(<SimilarScoreCard />);
  9. expect(wrapper).toSnapshot();
  10. });
  11. it('renders with score list', function() {
  12. const wrapper = mountWithTheme(
  13. <SimilarScoreCard
  14. scoreList={[
  15. ['exception,message,character-shingles', null],
  16. ['exception,stacktrace,application-chunks', 0.8],
  17. ['exception,stacktrace,pairs', 1],
  18. ['message,message,character-shingles', 0.5],
  19. ]}
  20. />
  21. );
  22. expect(wrapper).toSnapshot();
  23. });
  24. });