]> source.dussan.org Git - sonarqube.git/blob
ec5a30fd9ec290c490f627aaf5b0012888eb6d7b
[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   />
332   <LineCode
333     branchLike={
334       Object {
335         "analysisDate": "2018-01-01",
336         "base": "master",
337         "branch": "feature/foo/bar",
338         "key": "1001",
339         "target": "master",
340         "title": "Foo Bar feature",
341       }
342     }
343     displayLocationMarkers={false}
344     issueLocations={Array []}
345     issues={
346       Array [
347         Object {
348           "actions": Array [],
349           "component": "main.js",
350           "componentLongName": "main.js",
351           "componentQualifier": "FIL",
352           "componentUuid": "foo1234",
353           "creationDate": "2017-03-01T09:36:01+0100",
354           "flows": Array [],
355           "fromHotspot": false,
356           "key": "AVsae-CQS-9G3txfbFN2",
357           "line": 25,
358           "message": "Reduce the number of conditional operators (4) used in the expression",
359           "project": "myproject",
360           "projectKey": "foo",
361           "projectName": "Foo",
362           "rule": "javascript:S1067",
363           "ruleName": "foo",
364           "secondaryLocations": Array [],
365           "severity": "MAJOR",
366           "status": "OPEN",
367           "textRange": Object {
368             "endLine": 26,
369             "endOffset": 15,
370             "startLine": 25,
371             "startOffset": 0,
372           },
373           "transitions": Array [],
374           "type": "BUG",
375         },
376         Object {
377           "actions": Array [],
378           "component": "main.js",
379           "componentLongName": "main.js",
380           "componentQualifier": "FIL",
381           "componentUuid": "foo1234",
382           "creationDate": "2017-03-01T09:36:01+0100",
383           "flows": Array [],
384           "fromHotspot": false,
385           "key": "AVsae-CQS-9G3txfbFN2",
386           "line": 25,
387           "message": "Reduce the number of conditional operators (4) used in the expression",
388           "project": "myproject",
389           "projectKey": "foo",
390           "projectName": "Foo",
391           "rule": "javascript:S1067",
392           "ruleName": "foo",
393           "secondaryLocations": Array [],
394           "severity": "MAJOR",
395           "status": "OPEN",
396           "textRange": Object {
397             "endLine": 26,
398             "endOffset": 15,
399             "startLine": 25,
400             "startOffset": 0,
401           },
402           "transitions": Array [],
403           "type": "VULNERABILITY",
404         },
405       ]
406     }
407     line={
408       Object {
409         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
410         "coverageStatus": "covered",
411         "coveredConditions": 2,
412         "duplicated": false,
413         "isNew": true,
414         "line": 16,
415         "scmAuthor": "simon.brandhof@sonarsource.com",
416         "scmDate": "2018-12-11T10:48:39+0100",
417         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
418       }
419     }
420     onIssueChange={[MockFunction]}
421     onIssuePopupToggle={[MockFunction]}
422     onIssueSelect={[MockFunction]}
423     onLocationSelect={[MockFunction]}
424     onSymbolClick={[MockFunction]}
425     scroll={[MockFunction]}
426     secondaryIssueLocations={Array []}
427     showIssues={false}
428   />
429 </tr>
430 `;
431
432 exports[`should render correctly with duplication information 1`] = `
433 <tr
434   className="source-line source-line-filtered"
435   data-line-number={16}
436 >
437   <Memo(LineNumber)
438     line={
439       Object {
440         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
441         "coverageStatus": "covered",
442         "coveredConditions": 2,
443         "duplicated": false,
444         "isNew": true,
445         "line": 16,
446         "scmAuthor": "simon.brandhof@sonarsource.com",
447         "scmDate": "2018-12-11T10:48:39+0100",
448         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
449       }
450     }
451   />
452   <Memo(LineSCM)
453     line={
454       Object {
455         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
456         "coverageStatus": "covered",
457         "coveredConditions": 2,
458         "duplicated": false,
459         "isNew": true,
460         "line": 16,
461         "scmAuthor": "simon.brandhof@sonarsource.com",
462         "scmDate": "2018-12-11T10:48:39+0100",
463         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
464       }
465     }
466   />
467   <td
468     className="source-meta source-line-issues"
469   />
470   <Memo(LineDuplicationBlock)
471     blocksLoaded={true}
472     duplicated={false}
473     index={0}
474     key="0"
475     line={
476       Object {
477         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
478         "coverageStatus": "covered",
479         "coveredConditions": 2,
480         "duplicated": false,
481         "isNew": true,
482         "line": 16,
483         "scmAuthor": "simon.brandhof@sonarsource.com",
484         "scmDate": "2018-12-11T10:48:39+0100",
485         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
486       }
487     }
488     onClick={[MockFunction]}
489     renderDuplicationPopup={[MockFunction]}
490   />
491   <Memo(LineDuplicationBlock)
492     blocksLoaded={true}
493     duplicated={false}
494     index={1}
495     key="1"
496     line={
497       Object {
498         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
499         "coverageStatus": "covered",
500         "coveredConditions": 2,
501         "duplicated": false,
502         "isNew": true,
503         "line": 16,
504         "scmAuthor": "simon.brandhof@sonarsource.com",
505         "scmDate": "2018-12-11T10:48:39+0100",
506         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
507       }
508     }
509     renderDuplicationPopup={[MockFunction]}
510   />
511   <Memo(LineDuplicationBlock)
512     blocksLoaded={true}
513     duplicated={false}
514     index={2}
515     key="2"
516     line={
517       Object {
518         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
519         "coverageStatus": "covered",
520         "coveredConditions": 2,
521         "duplicated": false,
522         "isNew": true,
523         "line": 16,
524         "scmAuthor": "simon.brandhof@sonarsource.com",
525         "scmDate": "2018-12-11T10:48:39+0100",
526         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
527       }
528     }
529     renderDuplicationPopup={[MockFunction]}
530   />
531   <LineCode
532     branchLike={
533       Object {
534         "analysisDate": "2018-01-01",
535         "base": "master",
536         "branch": "feature/foo/bar",
537         "key": "1001",
538         "target": "master",
539         "title": "Foo Bar feature",
540       }
541     }
542     displayLocationMarkers={false}
543     issueLocations={Array []}
544     issues={
545       Array [
546         Object {
547           "actions": Array [],
548           "component": "main.js",
549           "componentLongName": "main.js",
550           "componentQualifier": "FIL",
551           "componentUuid": "foo1234",
552           "creationDate": "2017-03-01T09:36:01+0100",
553           "flows": Array [],
554           "fromHotspot": false,
555           "key": "AVsae-CQS-9G3txfbFN2",
556           "line": 25,
557           "message": "Reduce the number of conditional operators (4) used in the expression",
558           "project": "myproject",
559           "projectKey": "foo",
560           "projectName": "Foo",
561           "rule": "javascript:S1067",
562           "ruleName": "foo",
563           "secondaryLocations": Array [],
564           "severity": "MAJOR",
565           "status": "OPEN",
566           "textRange": Object {
567             "endLine": 26,
568             "endOffset": 15,
569             "startLine": 25,
570             "startOffset": 0,
571           },
572           "transitions": Array [],
573           "type": "BUG",
574         },
575         Object {
576           "actions": Array [],
577           "component": "main.js",
578           "componentLongName": "main.js",
579           "componentQualifier": "FIL",
580           "componentUuid": "foo1234",
581           "creationDate": "2017-03-01T09:36:01+0100",
582           "flows": Array [],
583           "fromHotspot": false,
584           "key": "AVsae-CQS-9G3txfbFN2",
585           "line": 25,
586           "message": "Reduce the number of conditional operators (4) used in the expression",
587           "project": "myproject",
588           "projectKey": "foo",
589           "projectName": "Foo",
590           "rule": "javascript:S1067",
591           "ruleName": "foo",
592           "secondaryLocations": Array [],
593           "severity": "MAJOR",
594           "status": "OPEN",
595           "textRange": Object {
596             "endLine": 26,
597             "endOffset": 15,
598             "startLine": 25,
599             "startOffset": 0,
600           },
601           "transitions": Array [],
602           "type": "VULNERABILITY",
603         },
604       ]
605     }
606     line={
607       Object {
608         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
609         "coverageStatus": "covered",
610         "coveredConditions": 2,
611         "duplicated": false,
612         "isNew": true,
613         "line": 16,
614         "scmAuthor": "simon.brandhof@sonarsource.com",
615         "scmDate": "2018-12-11T10:48:39+0100",
616         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
617       }
618     }
619     onIssueChange={[MockFunction]}
620     onIssuePopupToggle={[MockFunction]}
621     onIssueSelect={[MockFunction]}
622     onLocationSelect={[MockFunction]}
623     onSymbolClick={[MockFunction]}
624     scroll={[MockFunction]}
625     secondaryIssueLocations={Array []}
626     showIssues={false}
627   />
628 </tr>
629 `;
630
631 exports[`should render correctly with issues info 1`] = `
632 <tr
633   className="source-line source-line-filtered"
634   data-line-number={16}
635 >
636   <Memo(LineNumber)
637     line={
638       Object {
639         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
640         "coverageStatus": "covered",
641         "coveredConditions": 2,
642         "duplicated": false,
643         "isNew": true,
644         "line": 16,
645         "scmAuthor": "simon.brandhof@sonarsource.com",
646         "scmDate": "2018-12-11T10:48:39+0100",
647         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
648       }
649     }
650   />
651   <Memo(LineSCM)
652     line={
653       Object {
654         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
655         "coverageStatus": "covered",
656         "coveredConditions": 2,
657         "duplicated": false,
658         "isNew": true,
659         "line": 16,
660         "scmAuthor": "simon.brandhof@sonarsource.com",
661         "scmDate": "2018-12-11T10:48:39+0100",
662         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
663       }
664     }
665   />
666   <Memo(LineIssuesIndicator)
667     issues={
668       Array [
669         Object {
670           "actions": Array [],
671           "component": "main.js",
672           "componentLongName": "main.js",
673           "componentQualifier": "FIL",
674           "componentUuid": "foo1234",
675           "creationDate": "2017-03-01T09:36:01+0100",
676           "flows": Array [],
677           "fromHotspot": false,
678           "key": "AVsae-CQS-9G3txfbFN2",
679           "line": 25,
680           "message": "Reduce the number of conditional operators (4) used in the expression",
681           "project": "myproject",
682           "projectKey": "foo",
683           "projectName": "Foo",
684           "rule": "javascript:S1067",
685           "ruleName": "foo",
686           "secondaryLocations": Array [],
687           "severity": "MAJOR",
688           "status": "OPEN",
689           "textRange": Object {
690             "endLine": 26,
691             "endOffset": 15,
692             "startLine": 25,
693             "startOffset": 0,
694           },
695           "transitions": Array [],
696           "type": "BUG",
697         },
698         Object {
699           "actions": Array [],
700           "component": "main.js",
701           "componentLongName": "main.js",
702           "componentQualifier": "FIL",
703           "componentUuid": "foo1234",
704           "creationDate": "2017-03-01T09:36:01+0100",
705           "flows": Array [],
706           "fromHotspot": false,
707           "key": "AVsae-CQS-9G3txfbFN2",
708           "line": 25,
709           "message": "Reduce the number of conditional operators (4) used in the expression",
710           "project": "myproject",
711           "projectKey": "foo",
712           "projectName": "Foo",
713           "rule": "javascript:S1067",
714           "ruleName": "foo",
715           "secondaryLocations": Array [],
716           "severity": "MAJOR",
717           "status": "OPEN",
718           "textRange": Object {
719             "endLine": 26,
720             "endOffset": 15,
721             "startLine": 25,
722             "startOffset": 0,
723           },
724           "transitions": Array [],
725           "type": "VULNERABILITY",
726         },
727       ]
728     }
729     issuesOpen={false}
730     line={
731       Object {
732         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
733         "coverageStatus": "covered",
734         "coveredConditions": 2,
735         "duplicated": false,
736         "isNew": true,
737         "line": 16,
738         "scmAuthor": "simon.brandhof@sonarsource.com",
739         "scmDate": "2018-12-11T10:48:39+0100",
740         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
741       }
742     }
743     onClick={[Function]}
744   />
745   <LineCode
746     branchLike={
747       Object {
748         "analysisDate": "2018-01-01",
749         "base": "master",
750         "branch": "feature/foo/bar",
751         "key": "1001",
752         "target": "master",
753         "title": "Foo Bar feature",
754       }
755     }
756     displayLocationMarkers={false}
757     issueLocations={Array []}
758     issues={
759       Array [
760         Object {
761           "actions": Array [],
762           "component": "main.js",
763           "componentLongName": "main.js",
764           "componentQualifier": "FIL",
765           "componentUuid": "foo1234",
766           "creationDate": "2017-03-01T09:36:01+0100",
767           "flows": Array [],
768           "fromHotspot": false,
769           "key": "AVsae-CQS-9G3txfbFN2",
770           "line": 25,
771           "message": "Reduce the number of conditional operators (4) used in the expression",
772           "project": "myproject",
773           "projectKey": "foo",
774           "projectName": "Foo",
775           "rule": "javascript:S1067",
776           "ruleName": "foo",
777           "secondaryLocations": Array [],
778           "severity": "MAJOR",
779           "status": "OPEN",
780           "textRange": Object {
781             "endLine": 26,
782             "endOffset": 15,
783             "startLine": 25,
784             "startOffset": 0,
785           },
786           "transitions": Array [],
787           "type": "BUG",
788         },
789         Object {
790           "actions": Array [],
791           "component": "main.js",
792           "componentLongName": "main.js",
793           "componentQualifier": "FIL",
794           "componentUuid": "foo1234",
795           "creationDate": "2017-03-01T09:36:01+0100",
796           "flows": Array [],
797           "fromHotspot": false,
798           "key": "AVsae-CQS-9G3txfbFN2",
799           "line": 25,
800           "message": "Reduce the number of conditional operators (4) used in the expression",
801           "project": "myproject",
802           "projectKey": "foo",
803           "projectName": "Foo",
804           "rule": "javascript:S1067",
805           "ruleName": "foo",
806           "secondaryLocations": Array [],
807           "severity": "MAJOR",
808           "status": "OPEN",
809           "textRange": Object {
810             "endLine": 26,
811             "endOffset": 15,
812             "startLine": 25,
813             "startOffset": 0,
814           },
815           "transitions": Array [],
816           "type": "VULNERABILITY",
817         },
818       ]
819     }
820     line={
821       Object {
822         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
823         "coverageStatus": "covered",
824         "coveredConditions": 2,
825         "duplicated": false,
826         "isNew": true,
827         "line": 16,
828         "scmAuthor": "simon.brandhof@sonarsource.com",
829         "scmDate": "2018-12-11T10:48:39+0100",
830         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
831       }
832     }
833     onIssueChange={[MockFunction]}
834     onIssuePopupToggle={[MockFunction]}
835     onIssueSelect={[MockFunction]}
836     onLocationSelect={[MockFunction]}
837     onSymbolClick={[MockFunction]}
838     scroll={[MockFunction]}
839     secondaryIssueLocations={Array []}
840     showIssues={false}
841   />
842 </tr>
843 `;
844
845 exports[`should render correctly: no SCM 1`] = `
846 <tr
847   className="source-line source-line-filtered"
848   data-line-number={16}
849 >
850   <Memo(LineNumber)
851     line={
852       Object {
853         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
854         "coverageStatus": "covered",
855         "coveredConditions": 2,
856         "duplicated": false,
857         "isNew": true,
858         "line": 16,
859         "scmAuthor": "simon.brandhof@sonarsource.com",
860         "scmDate": "2018-12-11T10:48:39+0100",
861         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
862       }
863     }
864   />
865   <td
866     className="source-meta source-line-issues"
867   />
868   <LineCode
869     branchLike={
870       Object {
871         "analysisDate": "2018-01-01",
872         "base": "master",
873         "branch": "feature/foo/bar",
874         "key": "1001",
875         "target": "master",
876         "title": "Foo Bar feature",
877       }
878     }
879     displayLocationMarkers={false}
880     issueLocations={Array []}
881     issues={
882       Array [
883         Object {
884           "actions": Array [],
885           "component": "main.js",
886           "componentLongName": "main.js",
887           "componentQualifier": "FIL",
888           "componentUuid": "foo1234",
889           "creationDate": "2017-03-01T09:36:01+0100",
890           "flows": Array [],
891           "fromHotspot": false,
892           "key": "AVsae-CQS-9G3txfbFN2",
893           "line": 25,
894           "message": "Reduce the number of conditional operators (4) used in the expression",
895           "project": "myproject",
896           "projectKey": "foo",
897           "projectName": "Foo",
898           "rule": "javascript:S1067",
899           "ruleName": "foo",
900           "secondaryLocations": Array [],
901           "severity": "MAJOR",
902           "status": "OPEN",
903           "textRange": Object {
904             "endLine": 26,
905             "endOffset": 15,
906             "startLine": 25,
907             "startOffset": 0,
908           },
909           "transitions": Array [],
910           "type": "BUG",
911         },
912         Object {
913           "actions": Array [],
914           "component": "main.js",
915           "componentLongName": "main.js",
916           "componentQualifier": "FIL",
917           "componentUuid": "foo1234",
918           "creationDate": "2017-03-01T09:36:01+0100",
919           "flows": Array [],
920           "fromHotspot": false,
921           "key": "AVsae-CQS-9G3txfbFN2",
922           "line": 25,
923           "message": "Reduce the number of conditional operators (4) used in the expression",
924           "project": "myproject",
925           "projectKey": "foo",
926           "projectName": "Foo",
927           "rule": "javascript:S1067",
928           "ruleName": "foo",
929           "secondaryLocations": Array [],
930           "severity": "MAJOR",
931           "status": "OPEN",
932           "textRange": Object {
933             "endLine": 26,
934             "endOffset": 15,
935             "startLine": 25,
936             "startOffset": 0,
937           },
938           "transitions": Array [],
939           "type": "VULNERABILITY",
940         },
941       ]
942     }
943     line={
944       Object {
945         "code": "<span class=\\"k\\">import</span> java.util.<span class=\\"sym-9 sym\\">ArrayList</span>;",
946         "coverageStatus": "covered",
947         "coveredConditions": 2,
948         "duplicated": false,
949         "isNew": true,
950         "line": 16,
951         "scmAuthor": "simon.brandhof@sonarsource.com",
952         "scmDate": "2018-12-11T10:48:39+0100",
953         "scmRevision": "80f564becc0c0a1c9abaa006eca83a4fd278c3f0",
954       }
955     }
956     onIssueChange={[MockFunction]}
957     onIssuePopupToggle={[MockFunction]}
958     onIssueSelect={[MockFunction]}
959     onLocationSelect={[MockFunction]}
960     onSymbolClick={[MockFunction]}
961     scroll={[MockFunction]}
962     secondaryIssueLocations={Array []}
963     showIssues={false}
964   />
965 </tr>
966 `;