]> source.dussan.org Git - sonarqube.git/blob
931708c40711dc6c8d1015566c724d173e214f28
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <tr
5   className="source-line source-line-filtered"
6   data-line-number={16}
7 >
8   <LineNumber
9     line={
10       Object {
11         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
12         "coverageStatus": "covered",
13         "coveredConditions": 2,
14         "duplicated": false,
15         "isNew": true,
16         "line": 16,
17         "scmAuthor": "simon.brandhof@sonarsource.com",
18         "scmDate": "2018-12-11T10:48:39+0100",
19         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
20       }
21     }
22     onPopupToggle={[MockFunction]}
23     popupOpen={false}
24   />
25   <LineSCM
26     line={
27       Object {
28         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
29         "coverageStatus": "covered",
30         "coveredConditions": 2,
31         "duplicated": false,
32         "isNew": true,
33         "line": 16,
34         "scmAuthor": "simon.brandhof@sonarsource.com",
35         "scmDate": "2018-12-11T10:48:39+0100",
36         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
37       }
38     }
39     onPopupToggle={[MockFunction]}
40     popupOpen={false}
41   />
42   <td
43     className="source-meta source-line-issues"
44   />
45   <LineCode
46     branchLike={
47       Object {
48         "analysisDate": "2018-01-01",
49         "base": "master",
50         "branch": "feature/foo/bar",
51         "key": "1001",
52         "target": "master",
53         "title": "Foo Bar feature",
54       }
55     }
56     displayLocationMarkers={false}
57     issueLocations={Array []}
58     issues={
59       Array [
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           "organization": "myorg",
73           "project": "myproject",
74           "projectKey": "foo",
75           "projectName": "Foo",
76           "projectOrganization": "org",
77           "rule": "javascript:S1067",
78           "ruleName": "foo",
79           "secondaryLocations": Array [],
80           "severity": "MAJOR",
81           "status": "OPEN",
82           "textRange": Object {
83             "endLine": 26,
84             "endOffset": 15,
85             "startLine": 25,
86             "startOffset": 0,
87           },
88           "transitions": Array [],
89           "type": "BUG",
90         },
91         Object {
92           "actions": Array [],
93           "component": "main.js",
94           "componentLongName": "main.js",
95           "componentQualifier": "FIL",
96           "componentUuid": "foo1234",
97           "creationDate": "2017-03-01T09:36:01+0100",
98           "flows": Array [],
99           "fromHotspot": false,
100           "key": "AVsae-CQS-9G3txfbFN2",
101           "line": 25,
102           "message": "Reduce the number of conditional operators (4) used in the expression",
103           "organization": "myorg",
104           "project": "myproject",
105           "projectKey": "foo",
106           "projectName": "Foo",
107           "projectOrganization": "org",
108           "rule": "javascript:S1067",
109           "ruleName": "foo",
110           "secondaryLocations": Array [],
111           "severity": "MAJOR",
112           "status": "OPEN",
113           "textRange": Object {
114             "endLine": 26,
115             "endOffset": 15,
116             "startLine": 25,
117             "startOffset": 0,
118           },
119           "transitions": Array [],
120           "type": "VULNERABILITY",
121         },
122       ]
123     }
124     line={
125       Object {
126         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
127         "coverageStatus": "covered",
128         "coveredConditions": 2,
129         "duplicated": false,
130         "isNew": true,
131         "line": 16,
132         "scmAuthor": "simon.brandhof@sonarsource.com",
133         "scmDate": "2018-12-11T10:48:39+0100",
134         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
135       }
136     }
137     onIssueChange={[MockFunction]}
138     onIssuePopupToggle={[MockFunction]}
139     onIssueSelect={[MockFunction]}
140     onLocationSelect={[MockFunction]}
141     onSymbolClick={[MockFunction]}
142     scroll={[MockFunction]}
143     secondaryIssueLocations={Array []}
144     showIssues={false}
145   />
146 </tr>
147 `;
148
149 exports[`should render correctly for last, new, and highlighted lines 1`] = `
150 <tr
151   className="source-line source-line-highlighted source-line-filtered source-line-last"
152   data-line-number={16}
153 >
154   <LineNumber
155     line={
156       Object {
157         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
158         "coverageStatus": "covered",
159         "coveredConditions": 2,
160         "duplicated": false,
161         "isNew": true,
162         "line": 16,
163         "scmAuthor": "simon.brandhof@sonarsource.com",
164         "scmDate": "2018-12-11T10:48:39+0100",
165         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
166       }
167     }
168     onPopupToggle={[MockFunction]}
169     popupOpen={false}
170   />
171   <LineSCM
172     line={
173       Object {
174         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
175         "coverageStatus": "covered",
176         "coveredConditions": 2,
177         "duplicated": false,
178         "isNew": true,
179         "line": 16,
180         "scmAuthor": "simon.brandhof@sonarsource.com",
181         "scmDate": "2018-12-11T10:48:39+0100",
182         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
183       }
184     }
185     onPopupToggle={[MockFunction]}
186     popupOpen={false}
187   />
188   <td
189     className="source-meta source-line-issues"
190   />
191   <LineCode
192     branchLike={
193       Object {
194         "analysisDate": "2018-01-01",
195         "base": "master",
196         "branch": "feature/foo/bar",
197         "key": "1001",
198         "target": "master",
199         "title": "Foo Bar feature",
200       }
201     }
202     displayLocationMarkers={false}
203     issueLocations={Array []}
204     issues={
205       Array [
206         Object {
207           "actions": Array [],
208           "component": "main.js",
209           "componentLongName": "main.js",
210           "componentQualifier": "FIL",
211           "componentUuid": "foo1234",
212           "creationDate": "2017-03-01T09:36:01+0100",
213           "flows": Array [],
214           "fromHotspot": false,
215           "key": "AVsae-CQS-9G3txfbFN2",
216           "line": 25,
217           "message": "Reduce the number of conditional operators (4) used in the expression",
218           "organization": "myorg",
219           "project": "myproject",
220           "projectKey": "foo",
221           "projectName": "Foo",
222           "projectOrganization": "org",
223           "rule": "javascript:S1067",
224           "ruleName": "foo",
225           "secondaryLocations": Array [],
226           "severity": "MAJOR",
227           "status": "OPEN",
228           "textRange": Object {
229             "endLine": 26,
230             "endOffset": 15,
231             "startLine": 25,
232             "startOffset": 0,
233           },
234           "transitions": Array [],
235           "type": "BUG",
236         },
237         Object {
238           "actions": Array [],
239           "component": "main.js",
240           "componentLongName": "main.js",
241           "componentQualifier": "FIL",
242           "componentUuid": "foo1234",
243           "creationDate": "2017-03-01T09:36:01+0100",
244           "flows": Array [],
245           "fromHotspot": false,
246           "key": "AVsae-CQS-9G3txfbFN2",
247           "line": 25,
248           "message": "Reduce the number of conditional operators (4) used in the expression",
249           "organization": "myorg",
250           "project": "myproject",
251           "projectKey": "foo",
252           "projectName": "Foo",
253           "projectOrganization": "org",
254           "rule": "javascript:S1067",
255           "ruleName": "foo",
256           "secondaryLocations": Array [],
257           "severity": "MAJOR",
258           "status": "OPEN",
259           "textRange": Object {
260             "endLine": 26,
261             "endOffset": 15,
262             "startLine": 25,
263             "startOffset": 0,
264           },
265           "transitions": Array [],
266           "type": "VULNERABILITY",
267         },
268       ]
269     }
270     line={
271       Object {
272         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
273         "coverageStatus": "covered",
274         "coveredConditions": 2,
275         "duplicated": false,
276         "isNew": true,
277         "line": 16,
278         "scmAuthor": "simon.brandhof@sonarsource.com",
279         "scmDate": "2018-12-11T10:48:39+0100",
280         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
281       }
282     }
283     onIssueChange={[MockFunction]}
284     onIssuePopupToggle={[MockFunction]}
285     onIssueSelect={[MockFunction]}
286     onLocationSelect={[MockFunction]}
287     onSymbolClick={[MockFunction]}
288     scroll={[MockFunction]}
289     secondaryIssueLocations={Array []}
290     showIssues={false}
291   />
292 </tr>
293 `;
294
295 exports[`should render correctly with coverage 1`] = `
296 <tr
297   className="source-line source-line-filtered"
298   data-line-number={16}
299 >
300   <LineNumber
301     line={
302       Object {
303         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
304         "coverageStatus": "covered",
305         "coveredConditions": 2,
306         "duplicated": false,
307         "isNew": true,
308         "line": 16,
309         "scmAuthor": "simon.brandhof@sonarsource.com",
310         "scmDate": "2018-12-11T10:48:39+0100",
311         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
312       }
313     }
314     onPopupToggle={[MockFunction]}
315     popupOpen={false}
316   />
317   <LineSCM
318     line={
319       Object {
320         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
321         "coverageStatus": "covered",
322         "coveredConditions": 2,
323         "duplicated": false,
324         "isNew": true,
325         "line": 16,
326         "scmAuthor": "simon.brandhof@sonarsource.com",
327         "scmDate": "2018-12-11T10:48:39+0100",
328         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
329       }
330     }
331     onPopupToggle={[MockFunction]}
332     popupOpen={false}
333   />
334   <td
335     className="source-meta source-line-issues"
336   />
337   <LineCoverage
338     line={
339       Object {
340         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
341         "coverageStatus": "covered",
342         "coveredConditions": 2,
343         "duplicated": false,
344         "isNew": true,
345         "line": 16,
346         "scmAuthor": "simon.brandhof@sonarsource.com",
347         "scmDate": "2018-12-11T10:48:39+0100",
348         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
349       }
350     }
351   />
352   <LineCode
353     branchLike={
354       Object {
355         "analysisDate": "2018-01-01",
356         "base": "master",
357         "branch": "feature/foo/bar",
358         "key": "1001",
359         "target": "master",
360         "title": "Foo Bar feature",
361       }
362     }
363     displayLocationMarkers={false}
364     issueLocations={Array []}
365     issues={
366       Array [
367         Object {
368           "actions": Array [],
369           "component": "main.js",
370           "componentLongName": "main.js",
371           "componentQualifier": "FIL",
372           "componentUuid": "foo1234",
373           "creationDate": "2017-03-01T09:36:01+0100",
374           "flows": Array [],
375           "fromHotspot": false,
376           "key": "AVsae-CQS-9G3txfbFN2",
377           "line": 25,
378           "message": "Reduce the number of conditional operators (4) used in the expression",
379           "organization": "myorg",
380           "project": "myproject",
381           "projectKey": "foo",
382           "projectName": "Foo",
383           "projectOrganization": "org",
384           "rule": "javascript:S1067",
385           "ruleName": "foo",
386           "secondaryLocations": Array [],
387           "severity": "MAJOR",
388           "status": "OPEN",
389           "textRange": Object {
390             "endLine": 26,
391             "endOffset": 15,
392             "startLine": 25,
393             "startOffset": 0,
394           },
395           "transitions": Array [],
396           "type": "BUG",
397         },
398         Object {
399           "actions": Array [],
400           "component": "main.js",
401           "componentLongName": "main.js",
402           "componentQualifier": "FIL",
403           "componentUuid": "foo1234",
404           "creationDate": "2017-03-01T09:36:01+0100",
405           "flows": Array [],
406           "fromHotspot": false,
407           "key": "AVsae-CQS-9G3txfbFN2",
408           "line": 25,
409           "message": "Reduce the number of conditional operators (4) used in the expression",
410           "organization": "myorg",
411           "project": "myproject",
412           "projectKey": "foo",
413           "projectName": "Foo",
414           "projectOrganization": "org",
415           "rule": "javascript:S1067",
416           "ruleName": "foo",
417           "secondaryLocations": Array [],
418           "severity": "MAJOR",
419           "status": "OPEN",
420           "textRange": Object {
421             "endLine": 26,
422             "endOffset": 15,
423             "startLine": 25,
424             "startOffset": 0,
425           },
426           "transitions": Array [],
427           "type": "VULNERABILITY",
428         },
429       ]
430     }
431     line={
432       Object {
433         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
434         "coverageStatus": "covered",
435         "coveredConditions": 2,
436         "duplicated": false,
437         "isNew": true,
438         "line": 16,
439         "scmAuthor": "simon.brandhof@sonarsource.com",
440         "scmDate": "2018-12-11T10:48:39+0100",
441         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
442       }
443     }
444     onIssueChange={[MockFunction]}
445     onIssuePopupToggle={[MockFunction]}
446     onIssueSelect={[MockFunction]}
447     onLocationSelect={[MockFunction]}
448     onSymbolClick={[MockFunction]}
449     scroll={[MockFunction]}
450     secondaryIssueLocations={Array []}
451     showIssues={false}
452   />
453 </tr>
454 `;
455
456 exports[`should render correctly with duplication information 1`] = `
457 <tr
458   className="source-line source-line-filtered"
459   data-line-number={16}
460 >
461   <LineNumber
462     line={
463       Object {
464         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
465         "coverageStatus": "covered",
466         "coveredConditions": 2,
467         "duplicated": false,
468         "isNew": true,
469         "line": 16,
470         "scmAuthor": "simon.brandhof@sonarsource.com",
471         "scmDate": "2018-12-11T10:48:39+0100",
472         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
473       }
474     }
475     onPopupToggle={[MockFunction]}
476     popupOpen={false}
477   />
478   <LineSCM
479     line={
480       Object {
481         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
482         "coverageStatus": "covered",
483         "coveredConditions": 2,
484         "duplicated": false,
485         "isNew": true,
486         "line": 16,
487         "scmAuthor": "simon.brandhof@sonarsource.com",
488         "scmDate": "2018-12-11T10:48:39+0100",
489         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
490       }
491     }
492     onPopupToggle={[MockFunction]}
493     popupOpen={false}
494   />
495   <td
496     className="source-meta source-line-issues"
497   />
498   <LineDuplications
499     line={
500       Object {
501         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
502         "coverageStatus": "covered",
503         "coveredConditions": 2,
504         "duplicated": false,
505         "isNew": true,
506         "line": 16,
507         "scmAuthor": "simon.brandhof@sonarsource.com",
508         "scmDate": "2018-12-11T10:48:39+0100",
509         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
510       }
511     }
512     onClick={[MockFunction]}
513   />
514   <LineDuplicationBlock
515     duplicated={false}
516     index={0}
517     key="0"
518     line={
519       Object {
520         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
521         "coverageStatus": "covered",
522         "coveredConditions": 2,
523         "duplicated": false,
524         "isNew": true,
525         "line": 16,
526         "scmAuthor": "simon.brandhof@sonarsource.com",
527         "scmDate": "2018-12-11T10:48:39+0100",
528         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
529       }
530     }
531     onPopupToggle={[MockFunction]}
532     popupOpen={false}
533     renderDuplicationPopup={[MockFunction]}
534   />
535   <LineDuplicationBlock
536     duplicated={false}
537     index={1}
538     key="1"
539     line={
540       Object {
541         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
542         "coverageStatus": "covered",
543         "coveredConditions": 2,
544         "duplicated": false,
545         "isNew": true,
546         "line": 16,
547         "scmAuthor": "simon.brandhof@sonarsource.com",
548         "scmDate": "2018-12-11T10:48:39+0100",
549         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
550       }
551     }
552     onPopupToggle={[MockFunction]}
553     popupOpen={false}
554     renderDuplicationPopup={[MockFunction]}
555   />
556   <LineDuplicationBlock
557     duplicated={false}
558     index={2}
559     key="2"
560     line={
561       Object {
562         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
563         "coverageStatus": "covered",
564         "coveredConditions": 2,
565         "duplicated": false,
566         "isNew": true,
567         "line": 16,
568         "scmAuthor": "simon.brandhof@sonarsource.com",
569         "scmDate": "2018-12-11T10:48:39+0100",
570         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
571       }
572     }
573     onPopupToggle={[MockFunction]}
574     popupOpen={false}
575     renderDuplicationPopup={[MockFunction]}
576   />
577   <LineCode
578     branchLike={
579       Object {
580         "analysisDate": "2018-01-01",
581         "base": "master",
582         "branch": "feature/foo/bar",
583         "key": "1001",
584         "target": "master",
585         "title": "Foo Bar feature",
586       }
587     }
588     displayLocationMarkers={false}
589     issueLocations={Array []}
590     issues={
591       Array [
592         Object {
593           "actions": Array [],
594           "component": "main.js",
595           "componentLongName": "main.js",
596           "componentQualifier": "FIL",
597           "componentUuid": "foo1234",
598           "creationDate": "2017-03-01T09:36:01+0100",
599           "flows": Array [],
600           "fromHotspot": false,
601           "key": "AVsae-CQS-9G3txfbFN2",
602           "line": 25,
603           "message": "Reduce the number of conditional operators (4) used in the expression",
604           "organization": "myorg",
605           "project": "myproject",
606           "projectKey": "foo",
607           "projectName": "Foo",
608           "projectOrganization": "org",
609           "rule": "javascript:S1067",
610           "ruleName": "foo",
611           "secondaryLocations": Array [],
612           "severity": "MAJOR",
613           "status": "OPEN",
614           "textRange": Object {
615             "endLine": 26,
616             "endOffset": 15,
617             "startLine": 25,
618             "startOffset": 0,
619           },
620           "transitions": Array [],
621           "type": "BUG",
622         },
623         Object {
624           "actions": Array [],
625           "component": "main.js",
626           "componentLongName": "main.js",
627           "componentQualifier": "FIL",
628           "componentUuid": "foo1234",
629           "creationDate": "2017-03-01T09:36:01+0100",
630           "flows": Array [],
631           "fromHotspot": false,
632           "key": "AVsae-CQS-9G3txfbFN2",
633           "line": 25,
634           "message": "Reduce the number of conditional operators (4) used in the expression",
635           "organization": "myorg",
636           "project": "myproject",
637           "projectKey": "foo",
638           "projectName": "Foo",
639           "projectOrganization": "org",
640           "rule": "javascript:S1067",
641           "ruleName": "foo",
642           "secondaryLocations": Array [],
643           "severity": "MAJOR",
644           "status": "OPEN",
645           "textRange": Object {
646             "endLine": 26,
647             "endOffset": 15,
648             "startLine": 25,
649             "startOffset": 0,
650           },
651           "transitions": Array [],
652           "type": "VULNERABILITY",
653         },
654       ]
655     }
656     line={
657       Object {
658         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
659         "coverageStatus": "covered",
660         "coveredConditions": 2,
661         "duplicated": false,
662         "isNew": true,
663         "line": 16,
664         "scmAuthor": "simon.brandhof@sonarsource.com",
665         "scmDate": "2018-12-11T10:48:39+0100",
666         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
667       }
668     }
669     onIssueChange={[MockFunction]}
670     onIssuePopupToggle={[MockFunction]}
671     onIssueSelect={[MockFunction]}
672     onLocationSelect={[MockFunction]}
673     onSymbolClick={[MockFunction]}
674     scroll={[MockFunction]}
675     secondaryIssueLocations={Array []}
676     showIssues={false}
677   />
678 </tr>
679 `;
680
681 exports[`should render correctly with issues info 1`] = `
682 <tr
683   className="source-line source-line-filtered"
684   data-line-number={16}
685 >
686   <LineNumber
687     line={
688       Object {
689         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
690         "coverageStatus": "covered",
691         "coveredConditions": 2,
692         "duplicated": false,
693         "isNew": true,
694         "line": 16,
695         "scmAuthor": "simon.brandhof@sonarsource.com",
696         "scmDate": "2018-12-11T10:48:39+0100",
697         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
698       }
699     }
700     onPopupToggle={[MockFunction]}
701     popupOpen={false}
702   />
703   <LineSCM
704     line={
705       Object {
706         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
707         "coverageStatus": "covered",
708         "coveredConditions": 2,
709         "duplicated": false,
710         "isNew": true,
711         "line": 16,
712         "scmAuthor": "simon.brandhof@sonarsource.com",
713         "scmDate": "2018-12-11T10:48:39+0100",
714         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
715       }
716     }
717     onPopupToggle={[MockFunction]}
718     popupOpen={false}
719   />
720   <LineIssuesIndicator
721     issues={
722       Array [
723         Object {
724           "actions": Array [],
725           "component": "main.js",
726           "componentLongName": "main.js",
727           "componentQualifier": "FIL",
728           "componentUuid": "foo1234",
729           "creationDate": "2017-03-01T09:36:01+0100",
730           "flows": Array [],
731           "fromHotspot": false,
732           "key": "AVsae-CQS-9G3txfbFN2",
733           "line": 25,
734           "message": "Reduce the number of conditional operators (4) used in the expression",
735           "organization": "myorg",
736           "project": "myproject",
737           "projectKey": "foo",
738           "projectName": "Foo",
739           "projectOrganization": "org",
740           "rule": "javascript:S1067",
741           "ruleName": "foo",
742           "secondaryLocations": Array [],
743           "severity": "MAJOR",
744           "status": "OPEN",
745           "textRange": Object {
746             "endLine": 26,
747             "endOffset": 15,
748             "startLine": 25,
749             "startOffset": 0,
750           },
751           "transitions": Array [],
752           "type": "BUG",
753         },
754         Object {
755           "actions": Array [],
756           "component": "main.js",
757           "componentLongName": "main.js",
758           "componentQualifier": "FIL",
759           "componentUuid": "foo1234",
760           "creationDate": "2017-03-01T09:36:01+0100",
761           "flows": Array [],
762           "fromHotspot": false,
763           "key": "AVsae-CQS-9G3txfbFN2",
764           "line": 25,
765           "message": "Reduce the number of conditional operators (4) used in the expression",
766           "organization": "myorg",
767           "project": "myproject",
768           "projectKey": "foo",
769           "projectName": "Foo",
770           "projectOrganization": "org",
771           "rule": "javascript:S1067",
772           "ruleName": "foo",
773           "secondaryLocations": Array [],
774           "severity": "MAJOR",
775           "status": "OPEN",
776           "textRange": Object {
777             "endLine": 26,
778             "endOffset": 15,
779             "startLine": 25,
780             "startOffset": 0,
781           },
782           "transitions": Array [],
783           "type": "VULNERABILITY",
784         },
785       ]
786     }
787     line={
788       Object {
789         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
790         "coverageStatus": "covered",
791         "coveredConditions": 2,
792         "duplicated": false,
793         "isNew": true,
794         "line": 16,
795         "scmAuthor": "simon.brandhof@sonarsource.com",
796         "scmDate": "2018-12-11T10:48:39+0100",
797         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
798       }
799     }
800     onClick={[Function]}
801   />
802   <LineCode
803     branchLike={
804       Object {
805         "analysisDate": "2018-01-01",
806         "base": "master",
807         "branch": "feature/foo/bar",
808         "key": "1001",
809         "target": "master",
810         "title": "Foo Bar feature",
811       }
812     }
813     displayLocationMarkers={false}
814     issueLocations={Array []}
815     issues={
816       Array [
817         Object {
818           "actions": Array [],
819           "component": "main.js",
820           "componentLongName": "main.js",
821           "componentQualifier": "FIL",
822           "componentUuid": "foo1234",
823           "creationDate": "2017-03-01T09:36:01+0100",
824           "flows": Array [],
825           "fromHotspot": false,
826           "key": "AVsae-CQS-9G3txfbFN2",
827           "line": 25,
828           "message": "Reduce the number of conditional operators (4) used in the expression",
829           "organization": "myorg",
830           "project": "myproject",
831           "projectKey": "foo",
832           "projectName": "Foo",
833           "projectOrganization": "org",
834           "rule": "javascript:S1067",
835           "ruleName": "foo",
836           "secondaryLocations": Array [],
837           "severity": "MAJOR",
838           "status": "OPEN",
839           "textRange": Object {
840             "endLine": 26,
841             "endOffset": 15,
842             "startLine": 25,
843             "startOffset": 0,
844           },
845           "transitions": Array [],
846           "type": "BUG",
847         },
848         Object {
849           "actions": Array [],
850           "component": "main.js",
851           "componentLongName": "main.js",
852           "componentQualifier": "FIL",
853           "componentUuid": "foo1234",
854           "creationDate": "2017-03-01T09:36:01+0100",
855           "flows": Array [],
856           "fromHotspot": false,
857           "key": "AVsae-CQS-9G3txfbFN2",
858           "line": 25,
859           "message": "Reduce the number of conditional operators (4) used in the expression",
860           "organization": "myorg",
861           "project": "myproject",
862           "projectKey": "foo",
863           "projectName": "Foo",
864           "projectOrganization": "org",
865           "rule": "javascript:S1067",
866           "ruleName": "foo",
867           "secondaryLocations": Array [],
868           "severity": "MAJOR",
869           "status": "OPEN",
870           "textRange": Object {
871             "endLine": 26,
872             "endOffset": 15,
873             "startLine": 25,
874             "startOffset": 0,
875           },
876           "transitions": Array [],
877           "type": "VULNERABILITY",
878         },
879       ]
880     }
881     line={
882       Object {
883         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
884         "coverageStatus": "covered",
885         "coveredConditions": 2,
886         "duplicated": false,
887         "isNew": true,
888         "line": 16,
889         "scmAuthor": "simon.brandhof@sonarsource.com",
890         "scmDate": "2018-12-11T10:48:39+0100",
891         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
892       }
893     }
894     onIssueChange={[MockFunction]}
895     onIssuePopupToggle={[MockFunction]}
896     onIssueSelect={[MockFunction]}
897     onLocationSelect={[MockFunction]}
898     onSymbolClick={[MockFunction]}
899     scroll={[MockFunction]}
900     secondaryIssueLocations={Array []}
901     showIssues={false}
902   />
903 </tr>
904 `;
905
906 exports[`should render correctly: no SCM 1`] = `
907 <tr
908   className="source-line source-line-filtered"
909   data-line-number={16}
910 >
911   <LineNumber
912     line={
913       Object {
914         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
915         "coverageStatus": "covered",
916         "coveredConditions": 2,
917         "duplicated": false,
918         "isNew": true,
919         "line": 16,
920         "scmAuthor": "simon.brandhof@sonarsource.com",
921         "scmDate": "2018-12-11T10:48:39+0100",
922         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
923       }
924     }
925     onPopupToggle={[MockFunction]}
926     popupOpen={false}
927   />
928   <td
929     className="source-meta source-line-issues"
930   />
931   <LineCode
932     branchLike={
933       Object {
934         "analysisDate": "2018-01-01",
935         "base": "master",
936         "branch": "feature/foo/bar",
937         "key": "1001",
938         "target": "master",
939         "title": "Foo Bar feature",
940       }
941     }
942     displayLocationMarkers={false}
943     issueLocations={Array []}
944     issues={
945       Array [
946         Object {
947           "actions": Array [],
948           "component": "main.js",
949           "componentLongName": "main.js",
950           "componentQualifier": "FIL",
951           "componentUuid": "foo1234",
952           "creationDate": "2017-03-01T09:36:01+0100",
953           "flows": Array [],
954           "fromHotspot": false,
955           "key": "AVsae-CQS-9G3txfbFN2",
956           "line": 25,
957           "message": "Reduce the number of conditional operators (4) used in the expression",
958           "organization": "myorg",
959           "project": "myproject",
960           "projectKey": "foo",
961           "projectName": "Foo",
962           "projectOrganization": "org",
963           "rule": "javascript:S1067",
964           "ruleName": "foo",
965           "secondaryLocations": Array [],
966           "severity": "MAJOR",
967           "status": "OPEN",
968           "textRange": Object {
969             "endLine": 26,
970             "endOffset": 15,
971             "startLine": 25,
972             "startOffset": 0,
973           },
974           "transitions": Array [],
975           "type": "BUG",
976         },
977         Object {
978           "actions": Array [],
979           "component": "main.js",
980           "componentLongName": "main.js",
981           "componentQualifier": "FIL",
982           "componentUuid": "foo1234",
983           "creationDate": "2017-03-01T09:36:01+0100",
984           "flows": Array [],
985           "fromHotspot": false,
986           "key": "AVsae-CQS-9G3txfbFN2",
987           "line": 25,
988           "message": "Reduce the number of conditional operators (4) used in the expression",
989           "organization": "myorg",
990           "project": "myproject",
991           "projectKey": "foo",
992           "projectName": "Foo",
993           "projectOrganization": "org",
994           "rule": "javascript:S1067",
995           "ruleName": "foo",
996           "secondaryLocations": Array [],
997           "severity": "MAJOR",
998           "status": "OPEN",
999           "textRange": Object {
1000             "endLine": 26,
1001             "endOffset": 15,
1002             "startLine": 25,
1003             "startOffset": 0,
1004           },
1005           "transitions": Array [],
1006           "type": "VULNERABILITY",
1007         },
1008       ]
1009     }
1010     line={
1011       Object {
1012         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
1013         "coverageStatus": "covered",
1014         "coveredConditions": 2,
1015         "duplicated": false,
1016         "isNew": true,
1017         "line": 16,
1018         "scmAuthor": "simon.brandhof@sonarsource.com",
1019         "scmDate": "2018-12-11T10:48:39+0100",
1020         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
1021       }
1022     }
1023     onIssueChange={[MockFunction]}
1024     onIssuePopupToggle={[MockFunction]}
1025     onIssueSelect={[MockFunction]}
1026     onLocationSelect={[MockFunction]}
1027     onSymbolClick={[MockFunction]}
1028     scroll={[MockFunction]}
1029     secondaryIssueLocations={Array []}
1030     showIssues={false}
1031   />
1032 </tr>
1033 `;