]> source.dussan.org Git - sonarqube.git/blob
c8520210c7e2f6a88df285c7827ef531bdad2e46
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly with hotspots 1`] = `
4 <div
5   className="hotspot-category HIGH"
6 >
7   <a
8     className="hotspot-category-header display-flex-space-between display-flex-center"
9     href="#"
10     onClick={[Function]}
11   >
12     <strong
13       className="flex-1"
14     >
15       Class Injection
16     </strong>
17     <span>
18       <span
19         className="counter-badge"
20       >
21         2
22       </span>
23       <ChevronUpIcon
24         className="big-spacer-left"
25       />
26     </span>
27   </a>
28   <ul>
29     <li
30       data-hotspot-key="h1"
31       key="h1"
32     >
33       <HotspotListItem
34         hotspot={
35           Object {
36             "author": "Developer 1",
37             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
38             "creationDate": "2013-05-13T17:55:39+0200",
39             "key": "h1",
40             "line": 81,
41             "message": "'3' is a magic number.",
42             "project": "com.github.kevinsawicki:http-request",
43             "resolution": undefined,
44             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
45             "securityCategory": "command-injection",
46             "status": "TO_REVIEW",
47             "updateDate": "2013-05-13T17:55:39+0200",
48             "vulnerabilityProbability": "HIGH",
49           }
50         }
51         onClick={[MockFunction]}
52         selected={false}
53       />
54     </li>
55     <li
56       data-hotspot-key="h2"
57       key="h2"
58     >
59       <HotspotListItem
60         hotspot={
61           Object {
62             "author": "Developer 1",
63             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
64             "creationDate": "2013-05-13T17:55:39+0200",
65             "key": "h2",
66             "line": 81,
67             "message": "'3' is a magic number.",
68             "project": "com.github.kevinsawicki:http-request",
69             "resolution": undefined,
70             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
71             "securityCategory": "command-injection",
72             "status": "TO_REVIEW",
73             "updateDate": "2013-05-13T17:55:39+0200",
74             "vulnerabilityProbability": "HIGH",
75           }
76         }
77         onClick={[MockFunction]}
78         selected={false}
79       />
80     </li>
81   </ul>
82 </div>
83 `;
84
85 exports[`should render correctly with hotspots: collapsed 1`] = `
86 <div
87   className="hotspot-category HIGH"
88 >
89   <a
90     className="hotspot-category-header display-flex-space-between display-flex-center"
91     href="#"
92     onClick={[Function]}
93   >
94     <strong
95       className="flex-1"
96     >
97       Class Injection
98     </strong>
99     <span>
100       <span
101         className="counter-badge"
102       >
103         2
104       </span>
105       <ChevronDownIcon
106         className="big-spacer-left"
107       />
108     </span>
109   </a>
110 </div>
111 `;
112
113 exports[`should render correctly with hotspots: contains selected 1`] = `
114 <div
115   className="hotspot-category HIGH"
116 >
117   <a
118     className="hotspot-category-header display-flex-space-between display-flex-center contains-selected-hotspot"
119     href="#"
120     onClick={[Function]}
121   >
122     <strong
123       className="flex-1"
124     >
125       Class Injection
126     </strong>
127     <span>
128       <span
129         className="counter-badge"
130       >
131         2
132       </span>
133       <ChevronUpIcon
134         className="big-spacer-left"
135       />
136     </span>
137   </a>
138   <ul>
139     <li
140       data-hotspot-key="h1"
141       key="h1"
142     >
143       <HotspotListItem
144         hotspot={
145           Object {
146             "author": "Developer 1",
147             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
148             "creationDate": "2013-05-13T17:55:39+0200",
149             "key": "h1",
150             "line": 81,
151             "message": "'3' is a magic number.",
152             "project": "com.github.kevinsawicki:http-request",
153             "resolution": undefined,
154             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
155             "securityCategory": "command-injection",
156             "status": "TO_REVIEW",
157             "updateDate": "2013-05-13T17:55:39+0200",
158             "vulnerabilityProbability": "HIGH",
159           }
160         }
161         onClick={[MockFunction]}
162         selected={true}
163       />
164     </li>
165     <li
166       data-hotspot-key="h2"
167       key="h2"
168     >
169       <HotspotListItem
170         hotspot={
171           Object {
172             "author": "Developer 1",
173             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
174             "creationDate": "2013-05-13T17:55:39+0200",
175             "key": "h2",
176             "line": 81,
177             "message": "'3' is a magic number.",
178             "project": "com.github.kevinsawicki:http-request",
179             "resolution": undefined,
180             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
181             "securityCategory": "command-injection",
182             "status": "TO_REVIEW",
183             "updateDate": "2013-05-13T17:55:39+0200",
184             "vulnerabilityProbability": "HIGH",
185           }
186         }
187         onClick={[MockFunction]}
188         selected={false}
189       />
190     </li>
191   </ul>
192 </div>
193 `;
194
195 exports[`should render correctly with hotspots: lastAndIncomplete 1`] = `
196 <div
197   className="hotspot-category HIGH"
198 >
199   <a
200     className="hotspot-category-header display-flex-space-between display-flex-center"
201     href="#"
202     onClick={[Function]}
203   >
204     <strong
205       className="flex-1"
206     >
207       Class Injection
208     </strong>
209     <span>
210       <span
211         className="counter-badge"
212       >
213         2
214         +
215       </span>
216       <ChevronUpIcon
217         className="big-spacer-left"
218       />
219     </span>
220   </a>
221   <ul>
222     <li
223       data-hotspot-key="h1"
224       key="h1"
225     >
226       <HotspotListItem
227         hotspot={
228           Object {
229             "author": "Developer 1",
230             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
231             "creationDate": "2013-05-13T17:55:39+0200",
232             "key": "h1",
233             "line": 81,
234             "message": "'3' is a magic number.",
235             "project": "com.github.kevinsawicki:http-request",
236             "resolution": undefined,
237             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
238             "securityCategory": "command-injection",
239             "status": "TO_REVIEW",
240             "updateDate": "2013-05-13T17:55:39+0200",
241             "vulnerabilityProbability": "HIGH",
242           }
243         }
244         onClick={[MockFunction]}
245         selected={false}
246       />
247     </li>
248     <li
249       data-hotspot-key="h2"
250       key="h2"
251     >
252       <HotspotListItem
253         hotspot={
254           Object {
255             "author": "Developer 1",
256             "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
257             "creationDate": "2013-05-13T17:55:39+0200",
258             "key": "h2",
259             "line": 81,
260             "message": "'3' is a magic number.",
261             "project": "com.github.kevinsawicki:http-request",
262             "resolution": undefined,
263             "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
264             "securityCategory": "command-injection",
265             "status": "TO_REVIEW",
266             "updateDate": "2013-05-13T17:55:39+0200",
267             "vulnerabilityProbability": "HIGH",
268           }
269         }
270         onClick={[MockFunction]}
271         selected={false}
272       />
273     </li>
274   </ul>
275 </div>
276 `;