]> source.dussan.org Git - sonarqube.git/blob
4eb63a1a28c9aa89682e6a4ed1d9cd004a32f068
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="concise-issue-box clearfix selected"
6 >
7   <div
8     className="concise-issue-box-message"
9     onClick={[Function]}
10     role="listitem"
11     tabIndex={0}
12   >
13     Reduce the number of conditional operators (4) used in the expression
14   </div>
15   <div
16     className="concise-issue-box-attributes"
17   >
18     <TypeHelper
19       className="display-block little-spacer-right"
20       type="BUG"
21     />
22     <ConciseIssueLocations
23       issue={
24         Object {
25           "actions": Array [],
26           "component": "main.js",
27           "componentLongName": "main.js",
28           "componentQualifier": "FIL",
29           "componentUuid": "foo1234",
30           "creationDate": "2017-03-01T09:36:01+0100",
31           "flows": Array [],
32           "fromHotspot": false,
33           "key": "AVsae-CQS-9G3txfbFN2",
34           "line": 25,
35           "message": "Reduce the number of conditional operators (4) used in the expression",
36           "project": "myproject",
37           "projectKey": "foo",
38           "projectName": "Foo",
39           "rule": "javascript:S1067",
40           "ruleName": "foo",
41           "secondaryLocations": Array [],
42           "severity": "MAJOR",
43           "status": "OPEN",
44           "textRange": Object {
45             "endLine": 26,
46             "endOffset": 15,
47             "startLine": 25,
48             "startOffset": 0,
49           },
50           "transitions": Array [],
51           "type": "BUG",
52         }
53       }
54       onFlowSelect={[MockFunction]}
55       selectedFlowIndex={0}
56     />
57   </div>
58   <ConciseIssueLocationsNavigator
59     issue={
60       Object {
61         "actions": Array [],
62         "component": "main.js",
63         "componentLongName": "main.js",
64         "componentQualifier": "FIL",
65         "componentUuid": "foo1234",
66         "creationDate": "2017-03-01T09:36:01+0100",
67         "flows": Array [],
68         "fromHotspot": false,
69         "key": "AVsae-CQS-9G3txfbFN2",
70         "line": 25,
71         "message": "Reduce the number of conditional operators (4) used in the expression",
72         "project": "myproject",
73         "projectKey": "foo",
74         "projectName": "Foo",
75         "rule": "javascript:S1067",
76         "ruleName": "foo",
77         "secondaryLocations": Array [],
78         "severity": "MAJOR",
79         "status": "OPEN",
80         "textRange": Object {
81           "endLine": 26,
82           "endOffset": 15,
83           "startLine": 25,
84           "startOffset": 0,
85         },
86         "transitions": Array [],
87         "type": "BUG",
88       }
89     }
90     onLocationSelect={[MockFunction]}
91     scroll={[MockFunction]}
92     selectedFlowIndex={0}
93     selectedLocationIndex={0}
94   />
95   <LocationNavigationKeyboardShortcuts
96     issue={
97       Object {
98         "actions": Array [],
99         "component": "main.js",
100         "componentLongName": "main.js",
101         "componentQualifier": "FIL",
102         "componentUuid": "foo1234",
103         "creationDate": "2017-03-01T09:36:01+0100",
104         "flows": Array [],
105         "fromHotspot": false,
106         "key": "AVsae-CQS-9G3txfbFN2",
107         "line": 25,
108         "message": "Reduce the number of conditional operators (4) used in the expression",
109         "project": "myproject",
110         "projectKey": "foo",
111         "projectName": "Foo",
112         "rule": "javascript:S1067",
113         "ruleName": "foo",
114         "secondaryLocations": Array [],
115         "severity": "MAJOR",
116         "status": "OPEN",
117         "textRange": Object {
118           "endLine": 26,
119           "endOffset": 15,
120           "startLine": 25,
121           "startOffset": 0,
122         },
123         "transitions": Array [],
124         "type": "BUG",
125       }
126     }
127   />
128 </div>
129 `;
130
131 exports[`should render correctly 2`] = `
132 <div
133   className="concise-issue-box clearfix selected"
134 >
135   <div
136     className="concise-issue-box-message"
137     onClick={[Function]}
138     role="listitem"
139     tabIndex={0}
140   >
141     Reduce the number of conditional operators (4) used in the expression
142   </div>
143   <div
144     className="concise-issue-box-attributes"
145   >
146     <TypeHelper
147       className="display-block little-spacer-right"
148       type="BUG"
149     />
150     <ConciseIssueLocations
151       issue={
152         Object {
153           "actions": Array [],
154           "component": "main.js",
155           "componentLongName": "main.js",
156           "componentQualifier": "FIL",
157           "componentUuid": "foo1234",
158           "creationDate": "2017-03-01T09:36:01+0100",
159           "flows": Array [
160             Array [
161               Object {
162                 "component": "main.js",
163                 "textRange": Object {
164                   "endLine": 2,
165                   "endOffset": 2,
166                   "startLine": 1,
167                   "startOffset": 1,
168                 },
169               },
170               Object {
171                 "component": "main.js",
172                 "textRange": Object {
173                   "endLine": 2,
174                   "endOffset": 2,
175                   "startLine": 1,
176                   "startOffset": 1,
177                 },
178               },
179               Object {
180                 "component": "main.js",
181                 "textRange": Object {
182                   "endLine": 2,
183                   "endOffset": 2,
184                   "startLine": 1,
185                   "startOffset": 1,
186                 },
187               },
188             ],
189             Array [
190               Object {
191                 "component": "main.js",
192                 "textRange": Object {
193                   "endLine": 2,
194                   "endOffset": 2,
195                   "startLine": 1,
196                   "startOffset": 1,
197                 },
198               },
199               Object {
200                 "component": "main.js",
201                 "textRange": Object {
202                   "endLine": 2,
203                   "endOffset": 2,
204                   "startLine": 1,
205                   "startOffset": 1,
206                 },
207               },
208             ],
209           ],
210           "fromHotspot": false,
211           "key": "AVsae-CQS-9G3txfbFN2",
212           "line": 25,
213           "message": "Reduce the number of conditional operators (4) used in the expression",
214           "project": "myproject",
215           "projectKey": "foo",
216           "projectName": "Foo",
217           "rule": "javascript:S1067",
218           "ruleName": "foo",
219           "secondaryLocations": Array [
220             Object {
221               "component": "main.js",
222               "textRange": Object {
223                 "endLine": 2,
224                 "endOffset": 2,
225                 "startLine": 1,
226                 "startOffset": 1,
227               },
228             },
229             Object {
230               "component": "main.js",
231               "textRange": Object {
232                 "endLine": 2,
233                 "endOffset": 2,
234                 "startLine": 1,
235                 "startOffset": 1,
236               },
237             },
238           ],
239           "severity": "MAJOR",
240           "status": "OPEN",
241           "textRange": Object {
242             "endLine": 26,
243             "endOffset": 15,
244             "startLine": 25,
245             "startOffset": 0,
246           },
247           "transitions": Array [],
248           "type": "BUG",
249         }
250       }
251       onFlowSelect={[MockFunction]}
252       selectedFlowIndex={0}
253     />
254   </div>
255   <ConciseIssueLocationsNavigator
256     issue={
257       Object {
258         "actions": Array [],
259         "component": "main.js",
260         "componentLongName": "main.js",
261         "componentQualifier": "FIL",
262         "componentUuid": "foo1234",
263         "creationDate": "2017-03-01T09:36:01+0100",
264         "flows": Array [
265           Array [
266             Object {
267               "component": "main.js",
268               "textRange": Object {
269                 "endLine": 2,
270                 "endOffset": 2,
271                 "startLine": 1,
272                 "startOffset": 1,
273               },
274             },
275             Object {
276               "component": "main.js",
277               "textRange": Object {
278                 "endLine": 2,
279                 "endOffset": 2,
280                 "startLine": 1,
281                 "startOffset": 1,
282               },
283             },
284             Object {
285               "component": "main.js",
286               "textRange": Object {
287                 "endLine": 2,
288                 "endOffset": 2,
289                 "startLine": 1,
290                 "startOffset": 1,
291               },
292             },
293           ],
294           Array [
295             Object {
296               "component": "main.js",
297               "textRange": Object {
298                 "endLine": 2,
299                 "endOffset": 2,
300                 "startLine": 1,
301                 "startOffset": 1,
302               },
303             },
304             Object {
305               "component": "main.js",
306               "textRange": Object {
307                 "endLine": 2,
308                 "endOffset": 2,
309                 "startLine": 1,
310                 "startOffset": 1,
311               },
312             },
313           ],
314         ],
315         "fromHotspot": false,
316         "key": "AVsae-CQS-9G3txfbFN2",
317         "line": 25,
318         "message": "Reduce the number of conditional operators (4) used in the expression",
319         "project": "myproject",
320         "projectKey": "foo",
321         "projectName": "Foo",
322         "rule": "javascript:S1067",
323         "ruleName": "foo",
324         "secondaryLocations": Array [
325           Object {
326             "component": "main.js",
327             "textRange": Object {
328               "endLine": 2,
329               "endOffset": 2,
330               "startLine": 1,
331               "startOffset": 1,
332             },
333           },
334           Object {
335             "component": "main.js",
336             "textRange": Object {
337               "endLine": 2,
338               "endOffset": 2,
339               "startLine": 1,
340               "startOffset": 1,
341             },
342           },
343         ],
344         "severity": "MAJOR",
345         "status": "OPEN",
346         "textRange": Object {
347           "endLine": 26,
348           "endOffset": 15,
349           "startLine": 25,
350           "startOffset": 0,
351         },
352         "transitions": Array [],
353         "type": "BUG",
354       }
355     }
356     onLocationSelect={[MockFunction]}
357     scroll={[MockFunction]}
358     selectedFlowIndex={0}
359     selectedLocationIndex={0}
360   />
361   <LocationNavigationKeyboardShortcuts
362     issue={
363       Object {
364         "actions": Array [],
365         "component": "main.js",
366         "componentLongName": "main.js",
367         "componentQualifier": "FIL",
368         "componentUuid": "foo1234",
369         "creationDate": "2017-03-01T09:36:01+0100",
370         "flows": Array [
371           Array [
372             Object {
373               "component": "main.js",
374               "textRange": Object {
375                 "endLine": 2,
376                 "endOffset": 2,
377                 "startLine": 1,
378                 "startOffset": 1,
379               },
380             },
381             Object {
382               "component": "main.js",
383               "textRange": Object {
384                 "endLine": 2,
385                 "endOffset": 2,
386                 "startLine": 1,
387                 "startOffset": 1,
388               },
389             },
390             Object {
391               "component": "main.js",
392               "textRange": Object {
393                 "endLine": 2,
394                 "endOffset": 2,
395                 "startLine": 1,
396                 "startOffset": 1,
397               },
398             },
399           ],
400           Array [
401             Object {
402               "component": "main.js",
403               "textRange": Object {
404                 "endLine": 2,
405                 "endOffset": 2,
406                 "startLine": 1,
407                 "startOffset": 1,
408               },
409             },
410             Object {
411               "component": "main.js",
412               "textRange": Object {
413                 "endLine": 2,
414                 "endOffset": 2,
415                 "startLine": 1,
416                 "startOffset": 1,
417               },
418             },
419           ],
420         ],
421         "fromHotspot": false,
422         "key": "AVsae-CQS-9G3txfbFN2",
423         "line": 25,
424         "message": "Reduce the number of conditional operators (4) used in the expression",
425         "project": "myproject",
426         "projectKey": "foo",
427         "projectName": "Foo",
428         "rule": "javascript:S1067",
429         "ruleName": "foo",
430         "secondaryLocations": Array [
431           Object {
432             "component": "main.js",
433             "textRange": Object {
434               "endLine": 2,
435               "endOffset": 2,
436               "startLine": 1,
437               "startOffset": 1,
438             },
439           },
440           Object {
441             "component": "main.js",
442             "textRange": Object {
443               "endLine": 2,
444               "endOffset": 2,
445               "startLine": 1,
446               "startOffset": 1,
447             },
448           },
449         ],
450         "severity": "MAJOR",
451         "status": "OPEN",
452         "textRange": Object {
453           "endLine": 26,
454           "endOffset": 15,
455           "startLine": 25,
456           "startOffset": 0,
457         },
458         "transitions": Array [],
459         "type": "BUG",
460       }
461     }
462   />
463 </div>
464 `;