]> source.dussan.org Git - sonarqube.git/blob
07c77d60fa5a58b985c82bc872741b9f67f97c27
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="huge-spacer-bottom"
6 >
7   <h1
8     className="hotspot-list-header bordered-bottom"
9   >
10     <SecurityHotspotIcon
11       className="spacer-right"
12     />
13     hotspots.list_title.TO_REVIEW.0
14   </h1>
15   <ul
16     className="big-spacer-bottom"
17   />
18   <ListFooter
19     count={0}
20     loadMore={[MockFunction]}
21     loading={false}
22   />
23 </div>
24 `;
25
26 exports[`should render correctly 2`] = `
27 <div
28   className="huge-spacer-bottom"
29 >
30   <h1
31     className="hotspot-list-header bordered-bottom"
32   >
33     <SecurityHotspotIcon
34       className="spacer-right"
35     />
36     hotspots.list_title.TO_REVIEW.0
37   </h1>
38   <ul
39     className="big-spacer-bottom"
40   />
41   <ListFooter
42     count={0}
43     loading={true}
44   />
45 </div>
46 `;
47
48 exports[`should render correctly when the list of hotspot is static 1`] = `
49 <div
50   className="huge-spacer-bottom"
51 >
52   <h1
53     className="hotspot-list-header bordered-bottom"
54   >
55     <SecurityHotspotIcon
56       className="spacer-right"
57     />
58     hotspots.list_title.0
59   </h1>
60   <ul
61     className="big-spacer-bottom"
62   />
63   <ListFooter
64     count={0}
65     loadMore={[MockFunction]}
66     loading={false}
67   />
68 </div>
69 `;
70
71 exports[`should render correctly with hotspots: no pagination 1`] = `
72 <div
73   className="huge-spacer-bottom"
74 >
75   <h1
76     className="hotspot-list-header bordered-bottom"
77   >
78     <SecurityHotspotIcon
79       className="spacer-right"
80     />
81     hotspots.list_title.TO_REVIEW.5
82   </h1>
83   <ul
84     className="big-spacer-bottom"
85   >
86     <li
87       className="big-spacer-bottom"
88       key="HIGH"
89     >
90       <div
91         className="hotspot-risk-header little-spacer-left"
92       >
93         <span>
94           hotspots.risk_exposure
95         </span>
96         <div
97           className="hotspot-risk-badge spacer-left HIGH"
98         >
99           risk_exposure.HIGH
100         </div>
101       </div>
102       <ul>
103         <li
104           className="spacer-bottom"
105           key="cat1"
106         >
107           <HotspotCategory
108             hotspots={
109               Array [
110                 Object {
111                   "author": "Developer 1",
112                   "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
113                   "creationDate": "2013-05-13T17:55:39+0200",
114                   "key": "h2",
115                   "line": 81,
116                   "message": "'3' is a magic number.",
117                   "project": "com.github.kevinsawicki:http-request",
118                   "resolution": undefined,
119                   "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
120                   "securityCategory": "cat1",
121                   "status": "TO_REVIEW",
122                   "updateDate": "2013-05-13T17:55:39+0200",
123                   "vulnerabilityProbability": "HIGH",
124                 },
125               ]
126             }
127             onHotspotClick={[MockFunction]}
128             selectedHotspotKey="h2"
129             startsExpanded={true}
130             title="cat1"
131           />
132         </li>
133         <li
134           className="spacer-bottom"
135           key="cat2"
136         >
137           <HotspotCategory
138             hotspots={
139               Array [
140                 Object {
141                   "author": "Developer 1",
142                   "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
143                   "creationDate": "2013-05-13T17:55:39+0200",
144                   "key": "h1",
145                   "line": 81,
146                   "message": "'3' is a magic number.",
147                   "project": "com.github.kevinsawicki:http-request",
148                   "resolution": undefined,
149                   "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
150                   "securityCategory": "cat2",
151                   "status": "TO_REVIEW",
152                   "updateDate": "2013-05-13T17:55:39+0200",
153                   "vulnerabilityProbability": "HIGH",
154                 },
155               ]
156             }
157             onHotspotClick={[MockFunction]}
158             selectedHotspotKey="h2"
159             startsExpanded={false}
160             title="cat2"
161           />
162         </li>
163       </ul>
164     </li>
165     <li
166       className="big-spacer-bottom"
167       key="MEDIUM"
168     >
169       <div
170         className="hotspot-risk-header little-spacer-left"
171       >
172         <span>
173           hotspots.risk_exposure
174         </span>
175         <div
176           className="hotspot-risk-badge spacer-left MEDIUM"
177         >
178           risk_exposure.MEDIUM
179         </div>
180       </div>
181       <ul>
182         <li
183           className="spacer-bottom"
184           key="cat1"
185         >
186           <HotspotCategory
187             hotspots={
188               Array [
189                 Object {
190                   "author": "Developer 1",
191                   "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
192                   "creationDate": "2013-05-13T17:55:39+0200",
193                   "key": "h3",
194                   "line": 81,
195                   "message": "'3' is a magic number.",
196                   "project": "com.github.kevinsawicki:http-request",
197                   "resolution": undefined,
198                   "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
199                   "securityCategory": "cat1",
200                   "status": "TO_REVIEW",
201                   "updateDate": "2013-05-13T17:55:39+0200",
202                   "vulnerabilityProbability": "MEDIUM",
203                 },
204                 Object {
205                   "author": "Developer 1",
206                   "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
207                   "creationDate": "2013-05-13T17:55:39+0200",
208                   "key": "h4",
209                   "line": 81,
210                   "message": "'3' is a magic number.",
211                   "project": "com.github.kevinsawicki:http-request",
212                   "resolution": undefined,
213                   "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
214                   "securityCategory": "cat1",
215                   "status": "TO_REVIEW",
216                   "updateDate": "2013-05-13T17:55:39+0200",
217                   "vulnerabilityProbability": "MEDIUM",
218                 },
219               ]
220             }
221             onHotspotClick={[MockFunction]}
222             selectedHotspotKey="h2"
223             startsExpanded={false}
224             title="cat1"
225           />
226         </li>
227         <li
228           className="spacer-bottom"
229           key="cat2"
230         >
231           <HotspotCategory
232             hotspots={
233               Array [
234                 Object {
235                   "author": "Developer 1",
236                   "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
237                   "creationDate": "2013-05-13T17:55:39+0200",
238                   "key": "h5",
239                   "line": 81,
240                   "message": "'3' is a magic number.",
241                   "project": "com.github.kevinsawicki:http-request",
242                   "resolution": undefined,
243                   "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
244                   "securityCategory": "cat2",
245                   "status": "TO_REVIEW",
246                   "updateDate": "2013-05-13T17:55:39+0200",
247                   "vulnerabilityProbability": "MEDIUM",
248                 },
249               ]
250             }
251             onHotspotClick={[MockFunction]}
252             selectedHotspotKey="h2"
253             startsExpanded={false}
254             title="cat2"
255           />
256         </li>
257       </ul>
258     </li>
259   </ul>
260   <ListFooter
261     count={5}
262     loadMore={[MockFunction]}
263     loading={false}
264   />
265 </div>
266 `;
267
268 exports[`should render correctly with hotspots: pagination 1`] = `
269 <div
270   className="huge-spacer-bottom"
271 >
272   <h1
273     className="hotspot-list-header bordered-bottom"
274   >
275     <SecurityHotspotIcon
276       className="spacer-right"
277     />
278     hotspots.list_title.TO_REVIEW.5
279   </h1>
280   <ul
281     className="big-spacer-bottom"
282   >
283     <li
284       className="big-spacer-bottom"
285       key="HIGH"
286     >
287       <div
288         className="hotspot-risk-header little-spacer-left"
289       >
290         <span>
291           hotspots.risk_exposure
292         </span>
293         <div
294           className="hotspot-risk-badge spacer-left HIGH"
295         >
296           risk_exposure.HIGH
297         </div>
298       </div>
299       <ul>
300         <li
301           className="spacer-bottom"
302           key="cat1"
303         >
304           <HotspotCategory
305             hotspots={
306               Array [
307                 Object {
308                   "author": "Developer 1",
309                   "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
310                   "creationDate": "2013-05-13T17:55:39+0200",
311                   "key": "h2",
312                   "line": 81,
313                   "message": "'3' is a magic number.",
314                   "project": "com.github.kevinsawicki:http-request",
315                   "resolution": undefined,
316                   "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
317                   "securityCategory": "cat1",
318                   "status": "TO_REVIEW",
319                   "updateDate": "2013-05-13T17:55:39+0200",
320                   "vulnerabilityProbability": "HIGH",
321                 },
322               ]
323             }
324             onHotspotClick={[MockFunction]}
325             selectedHotspotKey="h2"
326             startsExpanded={true}
327             title="cat1"
328           />
329         </li>
330         <li
331           className="spacer-bottom"
332           key="cat2"
333         >
334           <HotspotCategory
335             hotspots={
336               Array [
337                 Object {
338                   "author": "Developer 1",
339                   "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
340                   "creationDate": "2013-05-13T17:55:39+0200",
341                   "key": "h1",
342                   "line": 81,
343                   "message": "'3' is a magic number.",
344                   "project": "com.github.kevinsawicki:http-request",
345                   "resolution": undefined,
346                   "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
347                   "securityCategory": "cat2",
348                   "status": "TO_REVIEW",
349                   "updateDate": "2013-05-13T17:55:39+0200",
350                   "vulnerabilityProbability": "HIGH",
351                 },
352               ]
353             }
354             onHotspotClick={[MockFunction]}
355             selectedHotspotKey="h2"
356             startsExpanded={false}
357             title="cat2"
358           />
359         </li>
360       </ul>
361     </li>
362     <li
363       className="big-spacer-bottom"
364       key="MEDIUM"
365     >
366       <div
367         className="hotspot-risk-header little-spacer-left"
368       >
369         <span>
370           hotspots.risk_exposure
371         </span>
372         <div
373           className="hotspot-risk-badge spacer-left MEDIUM"
374         >
375           risk_exposure.MEDIUM
376         </div>
377       </div>
378       <ul>
379         <li
380           className="spacer-bottom"
381           key="cat1"
382         >
383           <HotspotCategory
384             hotspots={
385               Array [
386                 Object {
387                   "author": "Developer 1",
388                   "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
389                   "creationDate": "2013-05-13T17:55:39+0200",
390                   "key": "h3",
391                   "line": 81,
392                   "message": "'3' is a magic number.",
393                   "project": "com.github.kevinsawicki:http-request",
394                   "resolution": undefined,
395                   "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
396                   "securityCategory": "cat1",
397                   "status": "TO_REVIEW",
398                   "updateDate": "2013-05-13T17:55:39+0200",
399                   "vulnerabilityProbability": "MEDIUM",
400                 },
401                 Object {
402                   "author": "Developer 1",
403                   "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
404                   "creationDate": "2013-05-13T17:55:39+0200",
405                   "key": "h4",
406                   "line": 81,
407                   "message": "'3' is a magic number.",
408                   "project": "com.github.kevinsawicki:http-request",
409                   "resolution": undefined,
410                   "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
411                   "securityCategory": "cat1",
412                   "status": "TO_REVIEW",
413                   "updateDate": "2013-05-13T17:55:39+0200",
414                   "vulnerabilityProbability": "MEDIUM",
415                 },
416               ]
417             }
418             onHotspotClick={[MockFunction]}
419             selectedHotspotKey="h2"
420             startsExpanded={false}
421             title="cat1"
422           />
423         </li>
424         <li
425           className="spacer-bottom"
426           key="cat2"
427         >
428           <HotspotCategory
429             hotspots={
430               Array [
431                 Object {
432                   "author": "Developer 1",
433                   "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
434                   "creationDate": "2013-05-13T17:55:39+0200",
435                   "key": "h5",
436                   "line": 81,
437                   "message": "'3' is a magic number.",
438                   "project": "com.github.kevinsawicki:http-request",
439                   "resolution": undefined,
440                   "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
441                   "securityCategory": "cat2",
442                   "status": "TO_REVIEW",
443                   "updateDate": "2013-05-13T17:55:39+0200",
444                   "vulnerabilityProbability": "MEDIUM",
445                 },
446               ]
447             }
448             onHotspotClick={[MockFunction]}
449             selectedHotspotKey="h2"
450             startsExpanded={false}
451             title="cat2"
452           />
453         </li>
454       </ul>
455     </li>
456   </ul>
457   <ListFooter
458     count={5}
459     loadMore={[MockFunction]}
460     loading={false}
461     total={7}
462   />
463 </div>
464 `;