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