similarScoreCard.spec.tsx 815 B

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