]> source.dussan.org Git - sonarqube.git/blob
bc1d76c887612fb62ac6893df4b6e7806d2857df
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly: default 1`] = `
4 <Fragment>
5   <div
6     className="display-inline-flex-center issue-message break-word"
7   >
8     <span
9       className="spacer-right"
10     >
11       <IssueMessageHighlighting
12         message="Reduce the number of conditional operators (4) used in the expression"
13       />
14     </span>
15     <IssueMessageTags />
16   </div>
17   <ButtonLink
18     aria-label="issue.why_this_issue.long"
19     className="issue-see-rule spacer-right text-baseline"
20     onClick={[Function]}
21   >
22     issue.why_this_issue
23   </ButtonLink>
24 </Fragment>
25 `;
26
27 exports[`should render correctly: hide why is it an issue 1`] = `
28 <Fragment>
29   <div
30     className="display-inline-flex-center issue-message break-word"
31   >
32     <span
33       className="spacer-right"
34     >
35       <IssueMessageHighlighting
36         message="Reduce the number of conditional operators (4) used in the expression"
37       />
38     </span>
39     <IssueMessageTags />
40   </div>
41 </Fragment>
42 `;
43
44 exports[`should render correctly: is deprecated rule 1`] = `
45 <Fragment>
46   <div
47     className="display-inline-flex-center issue-message break-word"
48   >
49     <span
50       className="spacer-right"
51     >
52       <IssueMessageHighlighting
53         message="Reduce the number of conditional operators (4) used in the expression"
54       />
55     </span>
56     <IssueMessageTags
57       ruleStatus="DEPRECATED"
58     />
59   </div>
60   <ButtonLink
61     aria-label="issue.why_this_issue.long"
62     className="issue-see-rule spacer-right text-baseline"
63     onClick={[Function]}
64   >
65     issue.why_this_issue
66   </ButtonLink>
67 </Fragment>
68 `;
69
70 exports[`should render correctly: is removed rule 1`] = `
71 <Fragment>
72   <div
73     className="display-inline-flex-center issue-message break-word"
74   >
75     <span
76       className="spacer-right"
77     >
78       <IssueMessageHighlighting
79         message="Reduce the number of conditional operators (4) used in the expression"
80       />
81     </span>
82     <IssueMessageTags
83       ruleStatus="REMOVED"
84     />
85   </div>
86   <ButtonLink
87     aria-label="issue.why_this_issue.long"
88     className="issue-see-rule spacer-right text-baseline"
89     onClick={[Function]}
90   >
91     issue.why_this_issue
92   </ButtonLink>
93 </Fragment>
94 `;
95
96 exports[`should render correctly: with engine info 1`] = `
97 <Fragment>
98   <div
99     className="display-inline-flex-center issue-message break-word"
100   >
101     <span
102       className="spacer-right"
103     >
104       <IssueMessageHighlighting
105         message="Reduce the number of conditional operators (4) used in the expression"
106       />
107     </span>
108     <IssueMessageTags
109       engine="js"
110     />
111   </div>
112   <ButtonLink
113     aria-label="issue.why_this_issue.long"
114     className="issue-see-rule spacer-right text-baseline"
115     onClick={[Function]}
116   >
117     issue.why_this_issue
118   </ButtonLink>
119 </Fragment>
120 `;
121
122 exports[`should render correctly: with quick fix 1`] = `
123 <Fragment>
124   <div
125     className="display-inline-flex-center issue-message break-word"
126   >
127     <span
128       className="spacer-right"
129     >
130       <IssueMessageHighlighting
131         message="Reduce the number of conditional operators (4) used in the expression"
132       />
133     </span>
134     <IssueMessageTags
135       quickFixAvailable={true}
136     />
137   </div>
138   <ButtonLink
139     aria-label="issue.why_this_issue.long"
140     className="issue-see-rule spacer-right text-baseline"
141     onClick={[Function]}
142   >
143     issue.why_this_issue
144   </ButtonLink>
145 </Fragment>
146 `;