]> source.dussan.org Git - sonarqube.git/blob
03560f28c24356f65bdbc8e0fef45d932ae3bd69
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render commentable correctly 1`] = `
4 <div
5   className="issue-actions"
6 >
7   <div
8     className="issue-meta-list"
9   >
10     <div
11       className="issue-meta"
12     >
13       <IssueType
14         canSetType={false}
15         isOpen={false}
16         issue={
17           Object {
18             "actions": Array [
19               "comment",
20             ],
21             "component": "main.js",
22             "componentLongName": "main.js",
23             "componentQualifier": "FIL",
24             "componentUuid": "foo1234",
25             "creationDate": "2017-03-01T09:36:01+0100",
26             "flows": Array [],
27             "flowsWithType": Array [],
28             "key": "AVsae-CQS-9G3txfbFN2",
29             "line": 25,
30             "message": "Reduce the number of conditional operators (4) used in the expression",
31             "project": "myproject",
32             "projectKey": "foo",
33             "projectName": "Foo",
34             "rule": "javascript:S1067",
35             "ruleName": "foo",
36             "secondaryLocations": Array [],
37             "severity": "MAJOR",
38             "status": "OPEN",
39             "textRange": Object {
40               "endLine": 26,
41               "endOffset": 15,
42               "startLine": 25,
43               "startOffset": 0,
44             },
45             "transitions": Array [],
46             "type": "BUG",
47           }
48         }
49         setIssueProperty={[Function]}
50         togglePopup={[MockFunction]}
51       />
52     </div>
53     <div
54       className="issue-meta"
55     >
56       <IssueSeverity
57         canSetSeverity={false}
58         isOpen={false}
59         issue={
60           Object {
61             "actions": Array [
62               "comment",
63             ],
64             "component": "main.js",
65             "componentLongName": "main.js",
66             "componentQualifier": "FIL",
67             "componentUuid": "foo1234",
68             "creationDate": "2017-03-01T09:36:01+0100",
69             "flows": Array [],
70             "flowsWithType": Array [],
71             "key": "AVsae-CQS-9G3txfbFN2",
72             "line": 25,
73             "message": "Reduce the number of conditional operators (4) used in the expression",
74             "project": "myproject",
75             "projectKey": "foo",
76             "projectName": "Foo",
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         }
92         setIssueProperty={[Function]}
93         togglePopup={[MockFunction]}
94       />
95     </div>
96     <div
97       className="issue-meta"
98     >
99       <IssueTransition
100         hasTransitions={false}
101         isOpen={false}
102         issue={
103           Object {
104             "actions": Array [
105               "comment",
106             ],
107             "component": "main.js",
108             "componentLongName": "main.js",
109             "componentQualifier": "FIL",
110             "componentUuid": "foo1234",
111             "creationDate": "2017-03-01T09:36:01+0100",
112             "flows": Array [],
113             "flowsWithType": Array [],
114             "key": "AVsae-CQS-9G3txfbFN2",
115             "line": 25,
116             "message": "Reduce the number of conditional operators (4) used in the expression",
117             "project": "myproject",
118             "projectKey": "foo",
119             "projectName": "Foo",
120             "rule": "javascript:S1067",
121             "ruleName": "foo",
122             "secondaryLocations": Array [],
123             "severity": "MAJOR",
124             "status": "OPEN",
125             "textRange": Object {
126               "endLine": 26,
127               "endOffset": 15,
128               "startLine": 25,
129               "startOffset": 0,
130             },
131             "transitions": Array [],
132             "type": "BUG",
133           }
134         }
135         onChange={[Function]}
136         togglePopup={[MockFunction]}
137       />
138     </div>
139     <div
140       className="issue-meta"
141     >
142       <IssueAssign
143         canAssign={false}
144         isOpen={false}
145         issue={
146           Object {
147             "actions": Array [
148               "comment",
149             ],
150             "component": "main.js",
151             "componentLongName": "main.js",
152             "componentQualifier": "FIL",
153             "componentUuid": "foo1234",
154             "creationDate": "2017-03-01T09:36:01+0100",
155             "flows": Array [],
156             "flowsWithType": Array [],
157             "key": "AVsae-CQS-9G3txfbFN2",
158             "line": 25,
159             "message": "Reduce the number of conditional operators (4) used in the expression",
160             "project": "myproject",
161             "projectKey": "foo",
162             "projectName": "Foo",
163             "rule": "javascript:S1067",
164             "ruleName": "foo",
165             "secondaryLocations": Array [],
166             "severity": "MAJOR",
167             "status": "OPEN",
168             "textRange": Object {
169               "endLine": 26,
170               "endOffset": 15,
171               "startLine": 25,
172               "startOffset": 0,
173             },
174             "transitions": Array [],
175             "type": "BUG",
176           }
177         }
178         onAssign={[MockFunction]}
179         togglePopup={[MockFunction]}
180       />
181     </div>
182     <IssueCommentAction
183       canComment={true}
184       commentAutoTriggered={false}
185       commentPlaceholder=""
186       issueKey="AVsae-CQS-9G3txfbFN2"
187       onChange={[MockFunction]}
188       toggleComment={[Function]}
189     />
190   </div>
191   <div
192     className="list-inline"
193   >
194     <div
195       className="issue-meta js-issue-tags"
196     >
197       <IssueTags
198         canSetTags={false}
199         isOpen={false}
200         issue={
201           Object {
202             "actions": Array [
203               "comment",
204             ],
205             "component": "main.js",
206             "componentLongName": "main.js",
207             "componentQualifier": "FIL",
208             "componentUuid": "foo1234",
209             "creationDate": "2017-03-01T09:36:01+0100",
210             "flows": Array [],
211             "flowsWithType": Array [],
212             "key": "AVsae-CQS-9G3txfbFN2",
213             "line": 25,
214             "message": "Reduce the number of conditional operators (4) used in the expression",
215             "project": "myproject",
216             "projectKey": "foo",
217             "projectName": "Foo",
218             "rule": "javascript:S1067",
219             "ruleName": "foo",
220             "secondaryLocations": Array [],
221             "severity": "MAJOR",
222             "status": "OPEN",
223             "textRange": Object {
224               "endLine": 26,
225               "endOffset": 15,
226               "startLine": 25,
227               "startOffset": 0,
228             },
229             "transitions": Array [],
230             "type": "BUG",
231           }
232         }
233         onChange={[MockFunction]}
234         togglePopup={[MockFunction]}
235       />
236     </div>
237   </div>
238 </div>
239 `;
240
241 exports[`should render effort correctly 1`] = `
242 <div
243   className="issue-actions"
244 >
245   <div
246     className="issue-meta-list"
247   >
248     <div
249       className="issue-meta"
250     >
251       <IssueType
252         canSetType={false}
253         isOpen={false}
254         issue={
255           Object {
256             "actions": Array [],
257             "component": "main.js",
258             "componentLongName": "main.js",
259             "componentQualifier": "FIL",
260             "componentUuid": "foo1234",
261             "creationDate": "2017-03-01T09:36:01+0100",
262             "effort": "great",
263             "flows": Array [],
264             "flowsWithType": Array [],
265             "key": "AVsae-CQS-9G3txfbFN2",
266             "line": 25,
267             "message": "Reduce the number of conditional operators (4) used in the expression",
268             "project": "myproject",
269             "projectKey": "foo",
270             "projectName": "Foo",
271             "rule": "javascript:S1067",
272             "ruleName": "foo",
273             "secondaryLocations": Array [],
274             "severity": "MAJOR",
275             "status": "OPEN",
276             "textRange": Object {
277               "endLine": 26,
278               "endOffset": 15,
279               "startLine": 25,
280               "startOffset": 0,
281             },
282             "transitions": Array [],
283             "type": "BUG",
284           }
285         }
286         setIssueProperty={[Function]}
287         togglePopup={[MockFunction]}
288       />
289     </div>
290     <div
291       className="issue-meta"
292     >
293       <IssueSeverity
294         canSetSeverity={false}
295         isOpen={false}
296         issue={
297           Object {
298             "actions": Array [],
299             "component": "main.js",
300             "componentLongName": "main.js",
301             "componentQualifier": "FIL",
302             "componentUuid": "foo1234",
303             "creationDate": "2017-03-01T09:36:01+0100",
304             "effort": "great",
305             "flows": Array [],
306             "flowsWithType": Array [],
307             "key": "AVsae-CQS-9G3txfbFN2",
308             "line": 25,
309             "message": "Reduce the number of conditional operators (4) used in the expression",
310             "project": "myproject",
311             "projectKey": "foo",
312             "projectName": "Foo",
313             "rule": "javascript:S1067",
314             "ruleName": "foo",
315             "secondaryLocations": Array [],
316             "severity": "MAJOR",
317             "status": "OPEN",
318             "textRange": Object {
319               "endLine": 26,
320               "endOffset": 15,
321               "startLine": 25,
322               "startOffset": 0,
323             },
324             "transitions": Array [],
325             "type": "BUG",
326           }
327         }
328         setIssueProperty={[Function]}
329         togglePopup={[MockFunction]}
330       />
331     </div>
332     <div
333       className="issue-meta"
334     >
335       <IssueTransition
336         hasTransitions={false}
337         isOpen={false}
338         issue={
339           Object {
340             "actions": Array [],
341             "component": "main.js",
342             "componentLongName": "main.js",
343             "componentQualifier": "FIL",
344             "componentUuid": "foo1234",
345             "creationDate": "2017-03-01T09:36:01+0100",
346             "effort": "great",
347             "flows": Array [],
348             "flowsWithType": Array [],
349             "key": "AVsae-CQS-9G3txfbFN2",
350             "line": 25,
351             "message": "Reduce the number of conditional operators (4) used in the expression",
352             "project": "myproject",
353             "projectKey": "foo",
354             "projectName": "Foo",
355             "rule": "javascript:S1067",
356             "ruleName": "foo",
357             "secondaryLocations": Array [],
358             "severity": "MAJOR",
359             "status": "OPEN",
360             "textRange": Object {
361               "endLine": 26,
362               "endOffset": 15,
363               "startLine": 25,
364               "startOffset": 0,
365             },
366             "transitions": Array [],
367             "type": "BUG",
368           }
369         }
370         onChange={[Function]}
371         togglePopup={[MockFunction]}
372       />
373     </div>
374     <div
375       className="issue-meta"
376     >
377       <IssueAssign
378         canAssign={false}
379         isOpen={false}
380         issue={
381           Object {
382             "actions": Array [],
383             "component": "main.js",
384             "componentLongName": "main.js",
385             "componentQualifier": "FIL",
386             "componentUuid": "foo1234",
387             "creationDate": "2017-03-01T09:36:01+0100",
388             "effort": "great",
389             "flows": Array [],
390             "flowsWithType": Array [],
391             "key": "AVsae-CQS-9G3txfbFN2",
392             "line": 25,
393             "message": "Reduce the number of conditional operators (4) used in the expression",
394             "project": "myproject",
395             "projectKey": "foo",
396             "projectName": "Foo",
397             "rule": "javascript:S1067",
398             "ruleName": "foo",
399             "secondaryLocations": Array [],
400             "severity": "MAJOR",
401             "status": "OPEN",
402             "textRange": Object {
403               "endLine": 26,
404               "endOffset": 15,
405               "startLine": 25,
406               "startOffset": 0,
407             },
408             "transitions": Array [],
409             "type": "BUG",
410           }
411         }
412         onAssign={[MockFunction]}
413         togglePopup={[MockFunction]}
414       />
415     </div>
416     <div
417       className="issue-meta"
418     >
419       <span
420         className="issue-meta-label"
421       >
422         issue.x_effort.great
423       </span>
424     </div>
425   </div>
426   <div
427     className="list-inline"
428   >
429     <div
430       className="issue-meta js-issue-tags"
431     >
432       <IssueTags
433         canSetTags={false}
434         isOpen={false}
435         issue={
436           Object {
437             "actions": Array [],
438             "component": "main.js",
439             "componentLongName": "main.js",
440             "componentQualifier": "FIL",
441             "componentUuid": "foo1234",
442             "creationDate": "2017-03-01T09:36:01+0100",
443             "effort": "great",
444             "flows": Array [],
445             "flowsWithType": Array [],
446             "key": "AVsae-CQS-9G3txfbFN2",
447             "line": 25,
448             "message": "Reduce the number of conditional operators (4) used in the expression",
449             "project": "myproject",
450             "projectKey": "foo",
451             "projectName": "Foo",
452             "rule": "javascript:S1067",
453             "ruleName": "foo",
454             "secondaryLocations": Array [],
455             "severity": "MAJOR",
456             "status": "OPEN",
457             "textRange": Object {
458               "endLine": 26,
459               "endOffset": 15,
460               "startLine": 25,
461               "startOffset": 0,
462             },
463             "transitions": Array [],
464             "type": "BUG",
465           }
466         }
467         onChange={[MockFunction]}
468         togglePopup={[MockFunction]}
469       />
470     </div>
471   </div>
472 </div>
473 `;
474
475 exports[`should render issue correctly 1`] = `
476 <div
477   className="issue-actions"
478 >
479   <div
480     className="issue-meta-list"
481   >
482     <div
483       className="issue-meta"
484     >
485       <IssueType
486         canSetType={false}
487         isOpen={false}
488         issue={
489           Object {
490             "actions": Array [],
491             "component": "main.js",
492             "componentLongName": "main.js",
493             "componentQualifier": "FIL",
494             "componentUuid": "foo1234",
495             "creationDate": "2017-03-01T09:36:01+0100",
496             "flows": Array [],
497             "flowsWithType": Array [],
498             "key": "AVsae-CQS-9G3txfbFN2",
499             "line": 25,
500             "message": "Reduce the number of conditional operators (4) used in the expression",
501             "project": "myproject",
502             "projectKey": "foo",
503             "projectName": "Foo",
504             "rule": "javascript:S1067",
505             "ruleName": "foo",
506             "secondaryLocations": Array [],
507             "severity": "MAJOR",
508             "status": "OPEN",
509             "textRange": Object {
510               "endLine": 26,
511               "endOffset": 15,
512               "startLine": 25,
513               "startOffset": 0,
514             },
515             "transitions": Array [],
516             "type": "BUG",
517           }
518         }
519         setIssueProperty={[Function]}
520         togglePopup={[MockFunction]}
521       />
522     </div>
523     <div
524       className="issue-meta"
525     >
526       <IssueSeverity
527         canSetSeverity={false}
528         isOpen={false}
529         issue={
530           Object {
531             "actions": Array [],
532             "component": "main.js",
533             "componentLongName": "main.js",
534             "componentQualifier": "FIL",
535             "componentUuid": "foo1234",
536             "creationDate": "2017-03-01T09:36:01+0100",
537             "flows": Array [],
538             "flowsWithType": Array [],
539             "key": "AVsae-CQS-9G3txfbFN2",
540             "line": 25,
541             "message": "Reduce the number of conditional operators (4) used in the expression",
542             "project": "myproject",
543             "projectKey": "foo",
544             "projectName": "Foo",
545             "rule": "javascript:S1067",
546             "ruleName": "foo",
547             "secondaryLocations": Array [],
548             "severity": "MAJOR",
549             "status": "OPEN",
550             "textRange": Object {
551               "endLine": 26,
552               "endOffset": 15,
553               "startLine": 25,
554               "startOffset": 0,
555             },
556             "transitions": Array [],
557             "type": "BUG",
558           }
559         }
560         setIssueProperty={[Function]}
561         togglePopup={[MockFunction]}
562       />
563     </div>
564     <div
565       className="issue-meta"
566     >
567       <IssueTransition
568         hasTransitions={false}
569         isOpen={false}
570         issue={
571           Object {
572             "actions": Array [],
573             "component": "main.js",
574             "componentLongName": "main.js",
575             "componentQualifier": "FIL",
576             "componentUuid": "foo1234",
577             "creationDate": "2017-03-01T09:36:01+0100",
578             "flows": Array [],
579             "flowsWithType": Array [],
580             "key": "AVsae-CQS-9G3txfbFN2",
581             "line": 25,
582             "message": "Reduce the number of conditional operators (4) used in the expression",
583             "project": "myproject",
584             "projectKey": "foo",
585             "projectName": "Foo",
586             "rule": "javascript:S1067",
587             "ruleName": "foo",
588             "secondaryLocations": Array [],
589             "severity": "MAJOR",
590             "status": "OPEN",
591             "textRange": Object {
592               "endLine": 26,
593               "endOffset": 15,
594               "startLine": 25,
595               "startOffset": 0,
596             },
597             "transitions": Array [],
598             "type": "BUG",
599           }
600         }
601         onChange={[Function]}
602         togglePopup={[MockFunction]}
603       />
604     </div>
605     <div
606       className="issue-meta"
607     >
608       <IssueAssign
609         canAssign={false}
610         isOpen={false}
611         issue={
612           Object {
613             "actions": Array [],
614             "component": "main.js",
615             "componentLongName": "main.js",
616             "componentQualifier": "FIL",
617             "componentUuid": "foo1234",
618             "creationDate": "2017-03-01T09:36:01+0100",
619             "flows": Array [],
620             "flowsWithType": Array [],
621             "key": "AVsae-CQS-9G3txfbFN2",
622             "line": 25,
623             "message": "Reduce the number of conditional operators (4) used in the expression",
624             "project": "myproject",
625             "projectKey": "foo",
626             "projectName": "Foo",
627             "rule": "javascript:S1067",
628             "ruleName": "foo",
629             "secondaryLocations": Array [],
630             "severity": "MAJOR",
631             "status": "OPEN",
632             "textRange": Object {
633               "endLine": 26,
634               "endOffset": 15,
635               "startLine": 25,
636               "startOffset": 0,
637             },
638             "transitions": Array [],
639             "type": "BUG",
640           }
641         }
642         onAssign={[MockFunction]}
643         togglePopup={[MockFunction]}
644       />
645     </div>
646   </div>
647   <div
648     className="list-inline"
649   >
650     <div
651       className="issue-meta js-issue-tags"
652     >
653       <IssueTags
654         canSetTags={false}
655         isOpen={false}
656         issue={
657           Object {
658             "actions": Array [],
659             "component": "main.js",
660             "componentLongName": "main.js",
661             "componentQualifier": "FIL",
662             "componentUuid": "foo1234",
663             "creationDate": "2017-03-01T09:36:01+0100",
664             "flows": Array [],
665             "flowsWithType": Array [],
666             "key": "AVsae-CQS-9G3txfbFN2",
667             "line": 25,
668             "message": "Reduce the number of conditional operators (4) used in the expression",
669             "project": "myproject",
670             "projectKey": "foo",
671             "projectName": "Foo",
672             "rule": "javascript:S1067",
673             "ruleName": "foo",
674             "secondaryLocations": Array [],
675             "severity": "MAJOR",
676             "status": "OPEN",
677             "textRange": Object {
678               "endLine": 26,
679               "endOffset": 15,
680               "startLine": 25,
681               "startOffset": 0,
682             },
683             "transitions": Array [],
684             "type": "BUG",
685           }
686         }
687         onChange={[MockFunction]}
688         togglePopup={[MockFunction]}
689       />
690     </div>
691   </div>
692 </div>
693 `;
694
695 exports[`should render security hotspot correctly 1`] = `
696 <div
697   className="issue-actions"
698 >
699   <div
700     className="issue-meta-list"
701   >
702     <div
703       className="issue-meta"
704     >
705       <IssueType
706         canSetType={false}
707         isOpen={false}
708         issue={
709           Object {
710             "actions": Array [],
711             "component": "main.js",
712             "componentLongName": "main.js",
713             "componentQualifier": "FIL",
714             "componentUuid": "foo1234",
715             "creationDate": "2017-03-01T09:36:01+0100",
716             "flows": Array [],
717             "flowsWithType": Array [],
718             "key": "AVsae-CQS-9G3txfbFN2",
719             "line": 25,
720             "message": "Reduce the number of conditional operators (4) used in the expression",
721             "project": "myproject",
722             "projectKey": "foo",
723             "projectName": "Foo",
724             "rule": "javascript:S1067",
725             "ruleName": "foo",
726             "secondaryLocations": Array [],
727             "severity": "MAJOR",
728             "status": "OPEN",
729             "textRange": Object {
730               "endLine": 26,
731               "endOffset": 15,
732               "startLine": 25,
733               "startOffset": 0,
734             },
735             "transitions": Array [],
736             "type": "SECURITY_HOTSPOT",
737           }
738         }
739         setIssueProperty={[Function]}
740         togglePopup={[MockFunction]}
741       />
742     </div>
743     <div
744       className="issue-meta"
745     >
746       <IssueTransition
747         hasTransitions={false}
748         isOpen={false}
749         issue={
750           Object {
751             "actions": Array [],
752             "component": "main.js",
753             "componentLongName": "main.js",
754             "componentQualifier": "FIL",
755             "componentUuid": "foo1234",
756             "creationDate": "2017-03-01T09:36:01+0100",
757             "flows": Array [],
758             "flowsWithType": Array [],
759             "key": "AVsae-CQS-9G3txfbFN2",
760             "line": 25,
761             "message": "Reduce the number of conditional operators (4) used in the expression",
762             "project": "myproject",
763             "projectKey": "foo",
764             "projectName": "Foo",
765             "rule": "javascript:S1067",
766             "ruleName": "foo",
767             "secondaryLocations": Array [],
768             "severity": "MAJOR",
769             "status": "OPEN",
770             "textRange": Object {
771               "endLine": 26,
772               "endOffset": 15,
773               "startLine": 25,
774               "startOffset": 0,
775             },
776             "transitions": Array [],
777             "type": "SECURITY_HOTSPOT",
778           }
779         }
780         onChange={[Function]}
781         togglePopup={[MockFunction]}
782       />
783     </div>
784     <div
785       className="issue-meta"
786     >
787       <IssueAssign
788         canAssign={false}
789         isOpen={false}
790         issue={
791           Object {
792             "actions": Array [],
793             "component": "main.js",
794             "componentLongName": "main.js",
795             "componentQualifier": "FIL",
796             "componentUuid": "foo1234",
797             "creationDate": "2017-03-01T09:36:01+0100",
798             "flows": Array [],
799             "flowsWithType": Array [],
800             "key": "AVsae-CQS-9G3txfbFN2",
801             "line": 25,
802             "message": "Reduce the number of conditional operators (4) used in the expression",
803             "project": "myproject",
804             "projectKey": "foo",
805             "projectName": "Foo",
806             "rule": "javascript:S1067",
807             "ruleName": "foo",
808             "secondaryLocations": Array [],
809             "severity": "MAJOR",
810             "status": "OPEN",
811             "textRange": Object {
812               "endLine": 26,
813               "endOffset": 15,
814               "startLine": 25,
815               "startOffset": 0,
816             },
817             "transitions": Array [],
818             "type": "SECURITY_HOTSPOT",
819           }
820         }
821         onAssign={[MockFunction]}
822         togglePopup={[MockFunction]}
823       />
824     </div>
825   </div>
826   <div
827     className="list-inline"
828   >
829     <div
830       className="issue-meta js-issue-tags"
831     >
832       <IssueTags
833         canSetTags={false}
834         isOpen={false}
835         issue={
836           Object {
837             "actions": Array [],
838             "component": "main.js",
839             "componentLongName": "main.js",
840             "componentQualifier": "FIL",
841             "componentUuid": "foo1234",
842             "creationDate": "2017-03-01T09:36:01+0100",
843             "flows": Array [],
844             "flowsWithType": Array [],
845             "key": "AVsae-CQS-9G3txfbFN2",
846             "line": 25,
847             "message": "Reduce the number of conditional operators (4) used in the expression",
848             "project": "myproject",
849             "projectKey": "foo",
850             "projectName": "Foo",
851             "rule": "javascript:S1067",
852             "ruleName": "foo",
853             "secondaryLocations": Array [],
854             "severity": "MAJOR",
855             "status": "OPEN",
856             "textRange": Object {
857               "endLine": 26,
858               "endOffset": 15,
859               "startLine": 25,
860               "startOffset": 0,
861             },
862             "transitions": Array [],
863             "type": "SECURITY_HOTSPOT",
864           }
865         }
866         onChange={[MockFunction]}
867         togglePopup={[MockFunction]}
868       />
869     </div>
870   </div>
871 </div>
872 `;