mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
29 lines
759 B
TypeScript
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],
|
|
]}
|
|
/>
|
|
);
|
|
});
|
|
});
|