]> source.dussan.org Git - sonarqube.git/blob
fb658fc95a27b66f0666bde0bc7ad66bbad03dd4
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render source file 1`] = `
4 <Modal
5   contentLabel=""
6   onRequestClose={[MockFunction]}
7   size="large"
8 >
9   <div
10     className="modal-container source-viewer-measures-modal"
11   >
12     <div
13       className="source-viewer-header-component source-viewer-measures-component"
14     >
15       <div
16         className="source-viewer-header-component-project"
17       >
18         <QualifierIcon
19           className="little-spacer-right"
20           qualifier="TRK"
21         />
22         <Link
23           onlyActiveOnIndex={false}
24           style={Object {}}
25           to={
26             Object {
27               "pathname": "/project/issues",
28               "query": Object {
29                 "branch": "feature",
30                 "id": "project-key",
31                 "resolved": "false",
32               },
33             }
34           }
35         >
36           Project Name
37         </Link>
38         <QualifierIcon
39           className="big-spacer-left little-spacer-right"
40           qualifier="BRC"
41         />
42         Sub-Project Name
43       </div>
44       <div
45         className="source-viewer-header-component-name display-flex-center little-spacer-top"
46       >
47         <QualifierIcon
48           className="little-spacer-right"
49           qualifier="FIL"
50         />
51         src/file.js
52       </div>
53     </div>
54     <div
55       className="source-viewer-measures"
56     >
57       <div
58         className="source-viewer-measures-section"
59       >
60         <div
61           className="source-viewer-measures-card"
62         >
63           <div
64             className="measures"
65           >
66             <div
67               className="measures-list"
68             >
69               <MeasuresOverlayMeasure
70                 key="lines"
71                 measure={
72                   Object {
73                     "metric": Object {
74                       "domain": "Size",
75                       "key": "lines",
76                       "type": "INT",
77                     },
78                     "value": "18",
79                   }
80                 }
81               />
82               <MeasuresOverlayMeasure
83                 key="ncloc"
84                 measure={
85                   Object {
86                     "metric": Object {
87                       "domain": "Size",
88                       "key": "ncloc",
89                       "type": "INT",
90                     },
91                     "value": "8",
92                   }
93                 }
94               />
95               <MeasuresOverlayMeasure
96                 key="comment_lines"
97                 measure={
98                   Object {
99                     "metric": Object {
100                       "domain": "Size",
101                       "key": "comment_lines",
102                       "type": "INT",
103                     },
104                     "value": "2",
105                   }
106                 }
107               />
108               <MeasuresOverlayMeasure
109                 key="comment_lines_density"
110                 measure={
111                   Object {
112                     "metric": Object {
113                       "domain": "Size",
114                       "key": "comment_lines_density",
115                       "type": "PERCENT",
116                     },
117                     "value": "20.0",
118                   }
119                 }
120               />
121             </div>
122           </div>
123           <div
124             className="measures"
125           >
126             <div
127               className="measures-list"
128             >
129               <MeasuresOverlayMeasure
130                 key="cognitive_complexity"
131                 measure={
132                   Object {
133                     "metric": Object {
134                       "domain": "Complexity",
135                       "key": "cognitive_complexity",
136                       "type": "INT",
137                     },
138                     "value": "0",
139                   }
140                 }
141               />
142               <MeasuresOverlayMeasure
143                 key="complexity"
144                 measure={
145                   Object {
146                     "metric": Object {
147                       "domain": "Complexity",
148                       "key": "complexity",
149                       "type": "INT",
150                     },
151                     "value": "1",
152                   }
153                 }
154               />
155             </div>
156           </div>
157         </div>
158       </div>
159       <div
160         className="source-viewer-measures-section"
161       >
162         <div
163           className="source-viewer-measures-card"
164         >
165           <div
166             className="measures"
167           >
168             <div
169               className="measure measure-big"
170               data-metric="sqale_index"
171             >
172               <span
173                 className="measure-value"
174               >
175                 <Measure
176                   metricKey="sqale_index"
177                   metricType="WORK_DUR"
178                   value="40"
179                 />
180               </span>
181               <span
182                 className="measure-name"
183               >
184                 sqale_index
185               </span>
186             </div>
187           </div>
188         </div>
189       </div>
190       <div
191         className="source-viewer-measures-section"
192       >
193         <div
194           className="source-viewer-measures-card"
195         >
196           <div
197             className="measures"
198           >
199             <div
200               className="measures-chart"
201             >
202               <CoverageRating
203                 size="big"
204                 value="75.0"
205               />
206             </div>
207             <div
208               className="measure measure-big"
209               data-metric="coverage"
210             >
211               <span
212                 className="measure-value"
213               >
214                 <Measure
215                   metricKey="coverage"
216                   metricType="PERCENT"
217                   value="75.0"
218                 />
219               </span>
220               <span
221                 className="measure-name"
222               >
223                 coverage
224               </span>
225             </div>
226           </div>
227           <div
228             className="measures"
229           >
230             <div
231               className="measures-list"
232             >
233               <MeasuresOverlayMeasure
234                 key="uncovered_lines"
235                 measure={
236                   Object {
237                     "metric": Object {
238                       "domain": "Coverage",
239                       "key": "uncovered_lines",
240                       "type": "INT",
241                     },
242                     "value": "1",
243                   }
244                 }
245               />
246               <MeasuresOverlayMeasure
247                 key="lines_to_cover"
248                 measure={
249                   Object {
250                     "metric": Object {
251                       "domain": "Coverage",
252                       "key": "lines_to_cover",
253                       "type": "INT",
254                     },
255                     "value": "4",
256                   }
257                 }
258               />
259             </div>
260           </div>
261         </div>
262       </div>
263       <div
264         className="source-viewer-measures-section"
265       >
266         <div
267           className="source-viewer-measures-card"
268         >
269           <div
270             className="measures"
271           >
272             <div
273               className="measures-chart"
274             >
275               <DuplicationsRating
276                 muted={false}
277                 size="big"
278                 value={0}
279               />
280             </div>
281             <div
282               className="measure measure-big"
283               data-metric="duplicated_lines_density"
284             >
285               <span
286                 className="measure-value"
287               >
288                 <Measure
289                   metricKey="duplicated_lines_density"
290                   metricType="PERCENT"
291                   value="0.0"
292                 />
293               </span>
294               <span
295                 className="measure-name"
296               >
297                 duplicated_lines_density
298               </span>
299             </div>
300           </div>
301           <div
302             className="measures"
303           >
304             <div
305               className="measures-list"
306             >
307               <MeasuresOverlayMeasure
308                 key="duplicated_blocks"
309                 measure={
310                   Object {
311                     "metric": Object {
312                       "domain": "Duplications",
313                       "key": "duplicated_blocks",
314                       "type": "INT",
315                     },
316                     "value": "3",
317                   }
318                 }
319               />
320               <MeasuresOverlayMeasure
321                 key="duplicated_lines"
322                 measure={
323                   Object {
324                     "metric": Object {
325                       "domain": "Duplications",
326                       "key": "duplicated_lines",
327                       "type": "INT",
328                     },
329                     "value": "0",
330                   }
331                 }
332               />
333             </div>
334           </div>
335         </div>
336       </div>
337     </div>
338     <div
339       className="spacer-top"
340     >
341       <a
342         className="js-show-all-measures"
343         href="#"
344         onClick={[Function]}
345       >
346         component_viewer.show_all_measures
347       </a>
348     </div>
349   </div>
350   <footer
351     className="modal-foot"
352   >
353     <ResetButtonLink
354       onClick={[MockFunction]}
355     >
356       close
357     </ResetButtonLink>
358   </footer>
359 </Modal>
360 `;
361
362 exports[`should render source file 2`] = `
363 <Modal
364   contentLabel=""
365   onRequestClose={[MockFunction]}
366   size="large"
367 >
368   <div
369     className="modal-container source-viewer-measures-modal"
370   >
371     <div
372       className="source-viewer-header-component source-viewer-measures-component"
373     >
374       <div
375         className="source-viewer-header-component-project"
376       >
377         <QualifierIcon
378           className="little-spacer-right"
379           qualifier="TRK"
380         />
381         <Link
382           onlyActiveOnIndex={false}
383           style={Object {}}
384           to={
385             Object {
386               "pathname": "/project/issues",
387               "query": Object {
388                 "branch": "feature",
389                 "id": "project-key",
390                 "resolved": "false",
391               },
392             }
393           }
394         >
395           Project Name
396         </Link>
397         <QualifierIcon
398           className="big-spacer-left little-spacer-right"
399           qualifier="BRC"
400         />
401         Sub-Project Name
402       </div>
403       <div
404         className="source-viewer-header-component-name display-flex-center little-spacer-top"
405       >
406         <QualifierIcon
407           className="little-spacer-right"
408           qualifier="FIL"
409         />
410         src/file.js
411       </div>
412     </div>
413     <div
414       className="source-viewer-measures"
415     >
416       <div
417         className="source-viewer-measures-section"
418       >
419         <div
420           className="source-viewer-measures-card"
421         >
422           <div
423             className="measures"
424           >
425             <div
426               className="measures-list"
427             >
428               <MeasuresOverlayMeasure
429                 key="lines"
430                 measure={
431                   Object {
432                     "metric": Object {
433                       "domain": "Size",
434                       "key": "lines",
435                       "type": "INT",
436                     },
437                     "value": "18",
438                   }
439                 }
440               />
441               <MeasuresOverlayMeasure
442                 key="ncloc"
443                 measure={
444                   Object {
445                     "metric": Object {
446                       "domain": "Size",
447                       "key": "ncloc",
448                       "type": "INT",
449                     },
450                     "value": "8",
451                   }
452                 }
453               />
454               <MeasuresOverlayMeasure
455                 key="comment_lines"
456                 measure={
457                   Object {
458                     "metric": Object {
459                       "domain": "Size",
460                       "key": "comment_lines",
461                       "type": "INT",
462                     },
463                     "value": "2",
464                   }
465                 }
466               />
467               <MeasuresOverlayMeasure
468                 key="comment_lines_density"
469                 measure={
470                   Object {
471                     "metric": Object {
472                       "domain": "Size",
473                       "key": "comment_lines_density",
474                       "type": "PERCENT",
475                     },
476                     "value": "20.0",
477                   }
478                 }
479               />
480             </div>
481           </div>
482           <div
483             className="measures"
484           >
485             <div
486               className="measures-list"
487             >
488               <MeasuresOverlayMeasure
489                 key="cognitive_complexity"
490                 measure={
491                   Object {
492                     "metric": Object {
493                       "domain": "Complexity",
494                       "key": "cognitive_complexity",
495                       "type": "INT",
496                     },
497                     "value": "0",
498                   }
499                 }
500               />
501               <MeasuresOverlayMeasure
502                 key="complexity"
503                 measure={
504                   Object {
505                     "metric": Object {
506                       "domain": "Complexity",
507                       "key": "complexity",
508                       "type": "INT",
509                     },
510                     "value": "1",
511                   }
512                 }
513               />
514             </div>
515           </div>
516         </div>
517       </div>
518       <div
519         className="source-viewer-measures-section"
520       >
521         <div
522           className="source-viewer-measures-card"
523         >
524           <div
525             className="measures"
526           >
527             <div
528               className="measure measure-big"
529               data-metric="sqale_index"
530             >
531               <span
532                 className="measure-value"
533               >
534                 <Measure
535                   metricKey="sqale_index"
536                   metricType="WORK_DUR"
537                   value="40"
538                 />
539               </span>
540               <span
541                 className="measure-name"
542               >
543                 sqale_index
544               </span>
545             </div>
546           </div>
547         </div>
548       </div>
549       <div
550         className="source-viewer-measures-section"
551       >
552         <div
553           className="source-viewer-measures-card"
554         >
555           <div
556             className="measures"
557           >
558             <div
559               className="measures-chart"
560             >
561               <CoverageRating
562                 size="big"
563                 value="75.0"
564               />
565             </div>
566             <div
567               className="measure measure-big"
568               data-metric="coverage"
569             >
570               <span
571                 className="measure-value"
572               >
573                 <Measure
574                   metricKey="coverage"
575                   metricType="PERCENT"
576                   value="75.0"
577                 />
578               </span>
579               <span
580                 className="measure-name"
581               >
582                 coverage
583               </span>
584             </div>
585           </div>
586           <div
587             className="measures"
588           >
589             <div
590               className="measures-list"
591             >
592               <MeasuresOverlayMeasure
593                 key="uncovered_lines"
594                 measure={
595                   Object {
596                     "metric": Object {
597                       "domain": "Coverage",
598                       "key": "uncovered_lines",
599                       "type": "INT",
600                     },
601                     "value": "1",
602                   }
603                 }
604               />
605               <MeasuresOverlayMeasure
606                 key="lines_to_cover"
607                 measure={
608                   Object {
609                     "metric": Object {
610                       "domain": "Coverage",
611                       "key": "lines_to_cover",
612                       "type": "INT",
613                     },
614                     "value": "4",
615                   }
616                 }
617               />
618             </div>
619           </div>
620         </div>
621       </div>
622       <div
623         className="source-viewer-measures-section"
624       >
625         <div
626           className="source-viewer-measures-card"
627         >
628           <div
629             className="measures"
630           >
631             <div
632               className="measures-chart"
633             >
634               <DuplicationsRating
635                 muted={false}
636                 size="big"
637                 value={0}
638               />
639             </div>
640             <div
641               className="measure measure-big"
642               data-metric="duplicated_lines_density"
643             >
644               <span
645                 className="measure-value"
646               >
647                 <Measure
648                   metricKey="duplicated_lines_density"
649                   metricType="PERCENT"
650                   value="0.0"
651                 />
652               </span>
653               <span
654                 className="measure-name"
655               >
656                 duplicated_lines_density
657               </span>
658             </div>
659           </div>
660           <div
661             className="measures"
662           >
663             <div
664               className="measures-list"
665             >
666               <MeasuresOverlayMeasure
667                 key="duplicated_blocks"
668                 measure={
669                   Object {
670                     "metric": Object {
671                       "domain": "Duplications",
672                       "key": "duplicated_blocks",
673                       "type": "INT",
674                     },
675                     "value": "3",
676                   }
677                 }
678               />
679               <MeasuresOverlayMeasure
680                 key="duplicated_lines"
681                 measure={
682                   Object {
683                     "metric": Object {
684                       "domain": "Duplications",
685                       "key": "duplicated_lines",
686                       "type": "INT",
687                     },
688                     "value": "0",
689                   }
690                 }
691               />
692             </div>
693           </div>
694         </div>
695       </div>
696     </div>
697     <div
698       className="spacer-top"
699     >
700       <div
701         className="source-viewer-measures source-viewer-measures-secondary js-all-measures"
702       >
703         <div
704           className="source-viewer-measures-section source-viewer-measures-section-big"
705         >
706           <div
707             className="source-viewer-measures-card"
708             key="Complexity"
709           >
710             <div
711               className="measures"
712             >
713               <div
714                 className="measures-list"
715               >
716                 <div
717                   className="measure measure-one-line measure-big"
718                 >
719                   <span
720                     className="measure-name"
721                   >
722                     Complexity
723                   </span>
724                 </div>
725                 <MeasuresOverlayMeasure
726                   key="cognitive_complexity"
727                   measure={
728                     Object {
729                       "metric": Object {
730                         "domain": "Complexity",
731                         "key": "cognitive_complexity",
732                         "type": "INT",
733                       },
734                       "value": "0",
735                     }
736                   }
737                 />
738                 <MeasuresOverlayMeasure
739                   key="complexity"
740                   measure={
741                     Object {
742                       "metric": Object {
743                         "domain": "Complexity",
744                         "key": "complexity",
745                         "type": "INT",
746                       },
747                       "value": "1",
748                     }
749                   }
750                 />
751               </div>
752             </div>
753           </div>
754           <div
755             className="source-viewer-measures-card"
756             key="Size"
757           >
758             <div
759               className="measures"
760             >
761               <div
762                 className="measures-list"
763               >
764                 <div
765                   className="measure measure-one-line measure-big"
766                 >
767                   <span
768                     className="measure-name"
769                   >
770                     Size
771                   </span>
772                 </div>
773                 <MeasuresOverlayMeasure
774                   key="classes"
775                   measure={
776                     Object {
777                       "metric": Object {
778                         "domain": "Size",
779                         "key": "classes",
780                         "type": "INT",
781                       },
782                       "value": "1",
783                     }
784                   }
785                 />
786                 <MeasuresOverlayMeasure
787                   key="comment_lines"
788                   measure={
789                     Object {
790                       "metric": Object {
791                         "domain": "Size",
792                         "key": "comment_lines",
793                         "type": "INT",
794                       },
795                       "value": "2",
796                     }
797                   }
798                 />
799                 <MeasuresOverlayMeasure
800                   key="comment_lines_density"
801                   measure={
802                     Object {
803                       "metric": Object {
804                         "domain": "Size",
805                         "key": "comment_lines_density",
806                         "type": "PERCENT",
807                       },
808                       "value": "20.0",
809                     }
810                   }
811                 />
812                 <MeasuresOverlayMeasure
813                   key="files"
814                   measure={
815                     Object {
816                       "metric": Object {
817                         "domain": "Size",
818                         "key": "files",
819                         "type": "INT",
820                       },
821                       "value": "1",
822                     }
823                   }
824                 />
825                 <MeasuresOverlayMeasure
826                   key="functions"
827                   measure={
828                     Object {
829                       "metric": Object {
830                         "domain": "Size",
831                         "key": "functions",
832                         "type": "INT",
833                       },
834                       "value": "1",
835                     }
836                   }
837                 />
838                 <MeasuresOverlayMeasure
839                   key="lines"
840                   measure={
841                     Object {
842                       "metric": Object {
843                         "domain": "Size",
844                         "key": "lines",
845                         "type": "INT",
846                       },
847                       "value": "18",
848                     }
849                   }
850                 />
851                 <MeasuresOverlayMeasure
852                   key="ncloc"
853                   measure={
854                     Object {
855                       "metric": Object {
856                         "domain": "Size",
857                         "key": "ncloc",
858                         "type": "INT",
859                       },
860                       "value": "8",
861                     }
862                   }
863                 />
864                 <MeasuresOverlayMeasure
865                   key="statements"
866                   measure={
867                     Object {
868                       "metric": Object {
869                         "domain": "Size",
870                         "key": "statements",
871                         "type": "INT",
872                       },
873                       "value": "3",
874                     }
875                   }
876                 />
877               </div>
878             </div>
879           </div>
880           <div
881             className="source-viewer-measures-card"
882             key="Coverage"
883           >
884             <div
885               className="measures"
886             >
887               <div
888                 className="measures-list"
889               >
890                 <div
891                   className="measure measure-one-line measure-big"
892                 >
893                   <span
894                     className="measure-name"
895                   >
896                     Coverage
897                   </span>
898                 </div>
899                 <MeasuresOverlayMeasure
900                   key="coverage"
901                   measure={
902                     Object {
903                       "metric": Object {
904                         "domain": "Coverage",
905                         "key": "coverage",
906                         "type": "PERCENT",
907                       },
908                       "value": "75.0",
909                     }
910                   }
911                 />
912                 <MeasuresOverlayMeasure
913                   key="line_coverage"
914                   measure={
915                     Object {
916                       "metric": Object {
917                         "domain": "Coverage",
918                         "key": "line_coverage",
919                         "type": "PERCENT",
920                       },
921                       "value": "75.0",
922                     }
923                   }
924                 />
925                 <MeasuresOverlayMeasure
926                   key="lines_to_cover"
927                   measure={
928                     Object {
929                       "metric": Object {
930                         "domain": "Coverage",
931                         "key": "lines_to_cover",
932                         "type": "INT",
933                       },
934                       "value": "4",
935                     }
936                   }
937                 />
938                 <MeasuresOverlayMeasure
939                   key="uncovered_lines"
940                   measure={
941                     Object {
942                       "metric": Object {
943                         "domain": "Coverage",
944                         "key": "uncovered_lines",
945                         "type": "INT",
946                       },
947                       "value": "1",
948                     }
949                   }
950                 />
951               </div>
952             </div>
953           </div>
954           <div
955             className="source-viewer-measures-card"
956             key="Reliability"
957           >
958             <div
959               className="measures"
960             >
961               <div
962                 className="measures-list"
963               >
964                 <div
965                   className="measure measure-one-line measure-big"
966                 >
967                   <span
968                     className="measure-name"
969                   >
970                     Reliability
971                   </span>
972                 </div>
973                 <MeasuresOverlayMeasure
974                   key="bugs"
975                   measure={
976                     Object {
977                       "metric": Object {
978                         "domain": "Reliability",
979                         "key": "bugs",
980                         "type": "INT",
981                       },
982                       "value": "0",
983                     }
984                   }
985                 />
986                 <MeasuresOverlayMeasure
987                   key="reliability_rating"
988                   measure={
989                     Object {
990                       "metric": Object {
991                         "domain": "Reliability",
992                         "key": "reliability_rating",
993                         "type": "RATING",
994                       },
995                       "value": "1.0",
996                     }
997                   }
998                 />
999               </div>
1000             </div>
1001           </div>
1002         </div>
1003         <div
1004           className="source-viewer-measures-section source-viewer-measures-section-big"
1005         >
1006           <div
1007             className="source-viewer-measures-card"
1008             key="Security"
1009           >
1010             <div
1011               className="measures"
1012             >
1013               <div
1014                 className="measures-list"
1015               >
1016                 <div
1017                   className="measure measure-one-line measure-big"
1018                 >
1019                   <span
1020                     className="measure-name"
1021                   >
1022                     Security
1023                   </span>
1024                 </div>
1025                 <MeasuresOverlayMeasure
1026                   key="security_rating"
1027                   measure={
1028                     Object {
1029                       "metric": Object {
1030                         "domain": "Security",
1031                         "key": "security_rating",
1032                         "type": "RATING",
1033                       },
1034                       "value": "1.0",
1035                     }
1036                   }
1037                 />
1038                 <MeasuresOverlayMeasure
1039                   key="vulnerabilities"
1040                   measure={
1041                     Object {
1042                       "metric": Object {
1043                         "domain": "Security",
1044                         "key": "vulnerabilities",
1045                         "type": "INT",
1046                       },
1047                       "value": "0",
1048                     }
1049                   }
1050                 />
1051               </div>
1052             </div>
1053           </div>
1054           <div
1055             className="source-viewer-measures-card"
1056             key="Tests"
1057           >
1058             <div
1059               className="measures"
1060             >
1061               <div
1062                 className="measures-list"
1063               >
1064                 <div
1065                   className="measure measure-one-line measure-big"
1066                 >
1067                   <span
1068                     className="measure-name"
1069                   >
1070                     Tests
1071                   </span>
1072                 </div>
1073                 <MeasuresOverlayMeasure
1074                   key="skipped_tests"
1075                   measure={
1076                     Object {
1077                       "metric": Object {
1078                         "domain": "Tests",
1079                         "key": "skipped_tests",
1080                         "type": "INT",
1081                       },
1082                       "value": "0",
1083                     }
1084                   }
1085                 />
1086                 <MeasuresOverlayMeasure
1087                   key="test_errors"
1088                   measure={
1089                     Object {
1090                       "metric": Object {
1091                         "domain": "Tests",
1092                         "key": "test_errors",
1093                         "type": "INT",
1094                       },
1095                       "value": "1",
1096                     }
1097                   }
1098                 />
1099                 <MeasuresOverlayMeasure
1100                   key="test_failures"
1101                   measure={
1102                     Object {
1103                       "metric": Object {
1104                         "domain": "Tests",
1105                         "key": "test_failures",
1106                         "type": "INT",
1107                       },
1108                       "value": "0",
1109                     }
1110                   }
1111                 />
1112                 <MeasuresOverlayMeasure
1113                   key="test_success_density"
1114                   measure={
1115                     Object {
1116                       "metric": Object {
1117                         "domain": "Tests",
1118                         "key": "test_success_density",
1119                         "type": "PERCENT",
1120                       },
1121                       "value": "100.0",
1122                     }
1123                   }
1124                 />
1125               </div>
1126             </div>
1127           </div>
1128           <div
1129             className="source-viewer-measures-card"
1130             key="Issues"
1131           >
1132             <div
1133               className="measures"
1134             >
1135               <div
1136                 className="measures-list"
1137               >
1138                 <div
1139                   className="measure measure-one-line measure-big"
1140                 >
1141                   <span
1142                     className="measure-name"
1143                   >
1144                     Issues
1145                   </span>
1146                 </div>
1147                 <MeasuresOverlayMeasure
1148                   key="false_positive_issues"
1149                   measure={
1150                     Object {
1151                       "metric": Object {
1152                         "domain": "Issues",
1153                         "key": "false_positive_issues",
1154                         "type": "INT",
1155                       },
1156                       "value": "0",
1157                     }
1158                   }
1159                 />
1160                 <MeasuresOverlayMeasure
1161                   key="wont_fix_issues"
1162                   measure={
1163                     Object {
1164                       "metric": Object {
1165                         "domain": "Issues",
1166                         "key": "wont_fix_issues",
1167                         "type": "INT",
1168                       },
1169                       "value": "0",
1170                     }
1171                   }
1172                 />
1173               </div>
1174             </div>
1175           </div>
1176           <div
1177             className="source-viewer-measures-card"
1178             key="Duplications"
1179           >
1180             <div
1181               className="measures"
1182             >
1183               <div
1184                 className="measures-list"
1185               >
1186                 <div
1187                   className="measure measure-one-line measure-big"
1188                 >
1189                   <span
1190                     className="measure-name"
1191                   >
1192                     Duplications
1193                   </span>
1194                 </div>
1195                 <MeasuresOverlayMeasure
1196                   key="duplicated_blocks"
1197                   measure={
1198                     Object {
1199                       "metric": Object {
1200                         "domain": "Duplications",
1201                         "key": "duplicated_blocks",
1202                         "type": "INT",
1203                       },
1204                       "value": "3",
1205                     }
1206                   }
1207                 />
1208                 <MeasuresOverlayMeasure
1209                   key="duplicated_files"
1210                   measure={
1211                     Object {
1212                       "metric": Object {
1213                         "domain": "Duplications",
1214                         "key": "duplicated_files",
1215                         "type": "INT",
1216                       },
1217                       "value": "1",
1218                     }
1219                   }
1220                 />
1221                 <MeasuresOverlayMeasure
1222                   key="duplicated_lines"
1223                   measure={
1224                     Object {
1225                       "metric": Object {
1226                         "domain": "Duplications",
1227                         "key": "duplicated_lines",
1228                         "type": "INT",
1229                       },
1230                       "value": "0",
1231                     }
1232                   }
1233                 />
1234                 <MeasuresOverlayMeasure
1235                   key="duplicated_lines_density"
1236                   measure={
1237                     Object {
1238                       "metric": Object {
1239                         "domain": "Duplications",
1240                         "key": "duplicated_lines_density",
1241                         "type": "PERCENT",
1242                       },
1243                       "value": "0.0",
1244                     }
1245                   }
1246                 />
1247               </div>
1248             </div>
1249           </div>
1250           <div
1251             className="source-viewer-measures-card"
1252             key="Maintainability"
1253           >
1254             <div
1255               className="measures"
1256             >
1257               <div
1258                 className="measures-list"
1259               >
1260                 <div
1261                   className="measure measure-one-line measure-big"
1262                 >
1263                   <span
1264                     className="measure-name"
1265                   >
1266                     Maintainability
1267                   </span>
1268                 </div>
1269                 <MeasuresOverlayMeasure
1270                   key="code_smells"
1271                   measure={
1272                     Object {
1273                       "metric": Object {
1274                         "domain": "Maintainability",
1275                         "key": "code_smells",
1276                         "type": "INT",
1277                       },
1278                       "value": "2",
1279                     }
1280                   }
1281                 />
1282                 <MeasuresOverlayMeasure
1283                   key="sqale_debt_ratio"
1284                   measure={
1285                     Object {
1286                       "metric": Object {
1287                         "domain": "Maintainability",
1288                         "key": "sqale_debt_ratio",
1289                         "type": "PERCENT",
1290                       },
1291                       "value": "16.7",
1292                     }
1293                   }
1294                 />
1295                 <MeasuresOverlayMeasure
1296                   key="sqale_index"
1297                   measure={
1298                     Object {
1299                       "metric": Object {
1300                         "domain": "Maintainability",
1301                         "key": "sqale_index",
1302                         "type": "WORK_DUR",
1303                       },
1304                       "value": "40",
1305                     }
1306                   }
1307                 />
1308               </div>
1309             </div>
1310           </div>
1311         </div>
1312       </div>
1313     </div>
1314   </div>
1315   <footer
1316     className="modal-foot"
1317   >
1318     <ResetButtonLink
1319       onClick={[MockFunction]}
1320     >
1321       close
1322     </ResetButtonLink>
1323   </footer>
1324 </Modal>
1325 `;
1326
1327 exports[`should render test file 1`] = `
1328 <Modal
1329   contentLabel=""
1330   onRequestClose={[MockFunction]}
1331   size="large"
1332 >
1333   <div
1334     className="modal-container source-viewer-measures-modal"
1335   >
1336     <div
1337       className="source-viewer-header-component source-viewer-measures-component"
1338     >
1339       <div
1340         className="source-viewer-header-component-project"
1341       >
1342         <QualifierIcon
1343           className="little-spacer-right"
1344           qualifier="TRK"
1345         />
1346         <Link
1347           onlyActiveOnIndex={false}
1348           style={Object {}}
1349           to={
1350             Object {
1351               "pathname": "/project/issues",
1352               "query": Object {
1353                 "branch": "feature",
1354                 "id": "project-key",
1355                 "resolved": "false",
1356               },
1357             }
1358           }
1359         >
1360           Project Name
1361         </Link>
1362         <QualifierIcon
1363           className="big-spacer-left little-spacer-right"
1364           qualifier="BRC"
1365         />
1366         Sub-Project Name
1367       </div>
1368       <div
1369         className="source-viewer-header-component-name display-flex-center little-spacer-top"
1370       >
1371         <QualifierIcon
1372           className="little-spacer-right"
1373           qualifier="UTS"
1374         />
1375         src/file.js
1376       </div>
1377     </div>
1378     <div
1379       className="source-viewer-measures"
1380     >
1381       <div
1382         className="source-viewer-measures-section"
1383       >
1384         <div
1385           className="source-viewer-measures-card"
1386         >
1387           <div
1388             className="measures"
1389           >
1390             <div
1391               className="measures-list"
1392             >
1393               <MeasuresOverlayMeasure
1394                 key="test_success_density"
1395                 measure={
1396                   Object {
1397                     "metric": Object {
1398                       "domain": "Tests",
1399                       "key": "test_success_density",
1400                       "type": "PERCENT",
1401                     },
1402                     "value": "100.0",
1403                   }
1404                 }
1405               />
1406               <MeasuresOverlayMeasure
1407                 key="test_failures"
1408                 measure={
1409                   Object {
1410                     "metric": Object {
1411                       "domain": "Tests",
1412                       "key": "test_failures",
1413                       "type": "INT",
1414                     },
1415                     "value": "0",
1416                   }
1417                 }
1418               />
1419               <MeasuresOverlayMeasure
1420                 key="test_errors"
1421                 measure={
1422                   Object {
1423                     "metric": Object {
1424                       "domain": "Tests",
1425                       "key": "test_errors",
1426                       "type": "INT",
1427                     },
1428                     "value": "1",
1429                   }
1430                 }
1431               />
1432               <MeasuresOverlayMeasure
1433                 key="skipped_tests"
1434                 measure={
1435                   Object {
1436                     "metric": Object {
1437                       "domain": "Tests",
1438                       "key": "skipped_tests",
1439                       "type": "INT",
1440                     },
1441                     "value": "0",
1442                   }
1443                 }
1444               />
1445             </div>
1446           </div>
1447         </div>
1448       </div>
1449     </div>
1450     <div
1451       className="spacer-top"
1452     >
1453       <a
1454         className="js-show-all-measures"
1455         href="#"
1456         onClick={[Function]}
1457       >
1458         component_viewer.show_all_measures
1459       </a>
1460     </div>
1461   </div>
1462   <footer
1463     className="modal-foot"
1464   >
1465     <ResetButtonLink
1466       onClick={[MockFunction]}
1467     >
1468       close
1469     </ResetButtonLink>
1470   </footer>
1471 </Modal>
1472 `;