]> source.dussan.org Git - sonarqube.git/blob
f2e2b7c283cc5f927d7e3b249564cdf3df0e290e
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display right meta info 1`] = `
4 <div
5   className="js-rule-meta"
6 >
7   <div
8     className="page-header"
9   >
10     <div
11       className="pull-right"
12     >
13       <span
14         className="note text-middle"
15       >
16         squid:S1133
17       </span>
18       <ForwardRef(Link)
19         className="coding-rules-detail-permalink link-no-underline spacer-left text-middle"
20         title="permalink"
21         to={
22           {
23             "pathname": "/coding_rules",
24             "search": "?open=squid%3AS1133&rule_key=squid%3AS1133",
25           }
26         }
27       >
28         <LinkIcon />
29       </ForwardRef(Link)>
30       <SimilarRulesFilter
31         onFilterChange={[MockFunction]}
32         rule={
33           {
34             "createdAt": "2013-07-26T09:40:51+0200",
35             "descriptionSections": [],
36             "key": "squid:S1133",
37             "lang": "java",
38             "langName": "Java",
39             "name": "Deprecated code should be removed",
40             "repo": "squid",
41             "scope": "MAIN",
42             "severity": "INFO",
43             "status": "READY",
44             "type": "CODE_SMELL",
45           }
46         }
47       />
48     </div>
49     <h1
50       className="page-title coding-rules-detail-header"
51     >
52       Deprecated code should be removed
53     </h1>
54   </div>
55   <ul
56     className="coding-rules-detail-properties"
57   >
58     <Tooltip
59       overlay="coding_rules.type.tooltip.CODE_SMELL"
60     >
61       <li
62         className="coding-rules-detail-property"
63         data-meta="type"
64       >
65         <IssueTypeIcon
66           className="little-spacer-right"
67           query="CODE_SMELL"
68         />
69         issue.type.CODE_SMELL
70       </li>
71     </Tooltip>
72     <Tooltip
73       overlay="default_severity"
74     >
75       <li
76         className="coding-rules-detail-property"
77         data-meta="severity"
78       >
79         <SeverityHelper
80           className="display-inline-flex-center"
81           severity="INFO"
82         />
83       </li>
84     </Tooltip>
85     <li
86       className="coding-rules-detail-property"
87       data-meta="tags"
88     >
89       <Dropdown
90         closeOnClick={false}
91         closeOnClickOutside={true}
92         overlay={
93           <RuleDetailsTagsPopup
94             setTags={[MockFunction]}
95             sysTags={[]}
96             tags={[]}
97           />
98         }
99         overlayPlacement="bottom-left"
100       >
101         <ButtonLink>
102           <TagsList
103             allowUpdate={true}
104             tags={
105               [
106                 "coding_rules.no_tags",
107               ]
108             }
109           />
110         </ButtonLink>
111       </Dropdown>
112     </li>
113     <li
114       className="coding-rules-detail-property"
115       data-meta="available-since"
116     >
117       <span
118         className="little-spacer-right"
119       >
120         coding_rules.available_since
121       </span>
122       <DateFormatter
123         date="2013-07-26T09:40:51+0200"
124       />
125     </li>
126   </ul>
127 </div>
128 `;
129
130 exports[`should display right meta info 2`] = `
131 <div
132   className="js-rule-meta"
133 >
134   <div
135     className="page-header"
136   >
137     <div
138       className="pull-right"
139     >
140       <span
141         className="note text-middle"
142       >
143         xoo:OneExternalIssuePerLine
144       </span>
145     </div>
146     <h1
147       className="page-title coding-rules-detail-header"
148     >
149       xoo:OneExternalIssuePerLine
150     </h1>
151   </div>
152 </div>
153 `;
154
155 exports[`should display right meta info 3`] = `
156 <div
157   className="js-rule-meta"
158 >
159   <div
160     className="page-header"
161   >
162     <div
163       className="pull-right"
164     >
165       <span
166         className="note text-middle"
167       >
168         xoo:OneExternalIssueWithDetailsPerLine
169       </span>
170     </div>
171     <h1
172       className="page-title coding-rules-detail-header"
173     >
174       One external issue per line
175     </h1>
176   </div>
177   <ul
178     className="coding-rules-detail-properties"
179   >
180     <Tooltip
181       overlay="coding_rules.type.tooltip.BUG"
182     >
183       <li
184         className="coding-rules-detail-property"
185         data-meta="type"
186       >
187         <IssueTypeIcon
188           className="little-spacer-right"
189           query="BUG"
190         />
191         issue.type.BUG
192       </li>
193     </Tooltip>
194     <Tooltip
195       overlay="default_severity"
196     >
197       <li
198         className="coding-rules-detail-property"
199         data-meta="severity"
200       >
201         <SeverityHelper
202           className="display-inline-flex-center"
203           severity="MAJOR"
204         />
205       </li>
206     </Tooltip>
207     <li
208       className="coding-rules-detail-property"
209       data-meta="tags"
210     >
211       <Dropdown
212         closeOnClick={false}
213         closeOnClickOutside={true}
214         overlay={
215           <RuleDetailsTagsPopup
216             setTags={[MockFunction]}
217             sysTags={[]}
218             tags={
219               [
220                 "tag",
221               ]
222             }
223           />
224         }
225         overlayPlacement="bottom-left"
226       >
227         <ButtonLink>
228           <TagsList
229             allowUpdate={true}
230             tags={
231               [
232                 "tag",
233               ]
234             }
235           />
236         </ButtonLink>
237       </Dropdown>
238     </li>
239     <Tooltip
240       overlay="coding_rules.external_rule.engine.xoo"
241     >
242       <li
243         className="coding-rules-detail-property"
244       >
245         <div
246           className="badge spacer-left text-text-top"
247         >
248           xoo
249         </div>
250       </li>
251     </Tooltip>
252   </ul>
253 </div>
254 `;
255
256 exports[`should edit tags 1`] = `
257 <li
258   className="coding-rules-detail-property"
259   data-meta="tags"
260 >
261   <Dropdown
262     closeOnClick={false}
263     closeOnClickOutside={true}
264     overlay={
265       <RuleDetailsTagsPopup
266         setTags={[MockFunction]}
267         sysTags={[]}
268         tags={[]}
269       />
270     }
271     overlayPlacement="bottom-left"
272   >
273     <ButtonLink>
274       <TagsList
275         allowUpdate={true}
276         tags={
277           [
278             "coding_rules.no_tags",
279           ]
280         }
281       />
282     </ButtonLink>
283   </Dropdown>
284 </li>
285 `;