]> source.dussan.org Git - sonarqube.git/blob
d626c8f7948273e1ff675c24ef82f9f6d039f4c3
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display two facets 1`] = `
4 <div>
5   <ProjectOverviewFacet
6     onChange={[Function]}
7     selected="duplicated_lines_density"
8     value="project_overview"
9   />
10   <DomainFacet
11     domain={
12       Object {
13         "measures": Array [
14           Object {
15             "leak": "70",
16             "metric": Object {
17               "domain": "Coverage",
18               "id": "1",
19               "key": "lines_to_cover",
20               "name": "Lines to Cover",
21               "type": "INT",
22             },
23             "periods": Array [
24               Object {
25                 "index": 1,
26                 "value": "70",
27               },
28             ],
29             "value": "431",
30           },
31           Object {
32             "leak": "0.0999999999999943",
33             "metric": Object {
34               "domain": "Coverage",
35               "id": "2",
36               "key": "coverage",
37               "name": "Coverage",
38               "type": "PERCENT",
39             },
40             "periods": Array [
41               Object {
42                 "index": 1,
43                 "value": "0.0999999999999943",
44               },
45             ],
46             "value": "99.3",
47           },
48         ],
49         "name": "Coverage",
50       }
51     }
52     hasOverview={true}
53     key="Coverage"
54     onChange={[Function]}
55     onToggle={[Function]}
56     open={false}
57     selected="duplicated_lines_density"
58   />
59   <DomainFacet
60     domain={
61       Object {
62         "measures": Array [
63           Object {
64             "leak": "0.0",
65             "metric": Object {
66               "domain": "Duplications",
67               "id": "3",
68               "key": "duplicated_lines_density",
69               "name": "Duplicated Lines (%)",
70               "type": "PERCENT",
71             },
72             "periods": Array [
73               Object {
74                 "index": 1,
75                 "value": "0.0",
76               },
77             ],
78             "value": "3.2",
79           },
80         ],
81         "name": "Duplications",
82       }
83     }
84     hasOverview={true}
85     key="Duplications"
86     onChange={[Function]}
87     onToggle={[Function]}
88     open={true}
89     selected="duplicated_lines_density"
90   />
91 </div>
92 `;