Files
sentinel/static/app/components/similarScoreCard.spec.tsx
2024-02-15 17:01:50 +00:00

29 lines
759 B
TypeScript

import {render} from 'sentry-test/reactTestingLibrary';
import SimilarScoreCard from 'sentry/components/similarScoreCard';
describe('SimilarScoreCard', function () {
beforeEach(function () {});
afterEach(function () {});
it('renders', function () {
const {container} = render(<SimilarScoreCard />);
expect(container).toBeEmptyDOMElement();
});
it('renders with score list', function () {
render(
<SimilarScoreCard
scoreList={[
['exception:message:character-shingles', null],
['exception:stacktrace:application-chunks', 0.8],
['exception:stacktrace:pairs', 1],
['message:message:character-shingles', 0.5],
['unknown:foo:bar', 0.5],
]}
/>
);
});
});