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