]> source.dussan.org Git - sonarqube.git/blob
dc67d02a1f91fb9b891e1989519b35eec66f991d
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <td
5   className="source-meta source-line-issues source-line-with-issues"
6   data-line-number={3}
7 >
8   <ButtonPlain
9     aria-label="source_viewer.issues_on_line.show"
10     onClick={[MockFunction]}
11   >
12     <Tooltip
13       overlay="source_viewer.issues_on_line.multiple_issues"
14     >
15       <IssueIcon
16         type="BUG"
17       />
18     </Tooltip>
19     <span
20       className="source-line-issues-counter"
21     >
22       2
23     </span>
24   </ButtonPlain>
25 </td>
26 `;
27
28 exports[`should render correctly: multiple issues, same type 1`] = `
29 <td
30   className="source-meta source-line-issues source-line-with-issues"
31   data-line-number={3}
32 >
33   <ButtonPlain
34     aria-label="source_viewer.issues_on_line.show"
35     onClick={[MockFunction]}
36   >
37     <Tooltip
38       overlay="source_viewer.issues_on_line.X_issues_of_type_Y.2.issue.type.VULNERABILITY.plural"
39     >
40       <IssueIcon
41         type="VULNERABILITY"
42       />
43     </Tooltip>
44     <span
45       className="source-line-issues-counter"
46     >
47       2
48     </span>
49   </ButtonPlain>
50 </td>
51 `;
52
53 exports[`should render correctly: no issues 1`] = `
54 <td
55   className="source-meta source-line-issues"
56   data-line-number={3}
57 />
58 `;
59
60 exports[`should render correctly: single issue 1`] = `
61 <td
62   className="source-meta source-line-issues source-line-with-issues"
63   data-line-number={3}
64 >
65   <ButtonPlain
66     aria-label="source_viewer.issues_on_line.show"
67     onClick={[MockFunction]}
68   >
69     <Tooltip
70       overlay="source_viewer.issues_on_line.issue_of_type_X.issue.type.VULNERABILITY"
71     >
72       <IssueIcon
73         type="VULNERABILITY"
74       />
75     </Tooltip>
76   </ButtonPlain>
77 </td>
78 `;