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