]> source.dussan.org Git - sonarqube.git/blob
5049227713fb4efed6b4a5ad8350a57fe5acf23d
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly the graph and legends 1`] = `
4 <div
5   className="project-activity-layout-page-main-inner boxed-group boxed-group-inner"
6 >
7   <GraphsHeader
8     addCustomMetric={[Function]}
9     className="big-spacer-bottom"
10     graph="issues"
11     metrics={
12       [
13         {
14           "id": "1",
15           "key": "code_smells",
16           "name": "Code Smells",
17           "type": "INT",
18         },
19       ]
20     }
21     removeCustomMetric={[Function]}
22     selectedMetrics={[]}
23     updateGraph={[Function]}
24   />
25   <GraphsHistory
26     analyses={
27       [
28         {
29           "date": 2016-10-27T14:33:50.000Z,
30           "events": [
31             {
32               "category": "VERSION",
33               "key": "E1",
34               "name": "6.5-SNAPSHOT",
35             },
36           ],
37           "key": "A1",
38         },
39         {
40           "date": 2016-10-27T10:21:15.000Z,
41           "events": [],
42           "key": "A2",
43         },
44         {
45           "date": 2016-10-26T10:17:29.000Z,
46           "events": [
47             {
48               "category": "VERSION",
49               "key": "E2",
50               "name": "6.4",
51             },
52             {
53               "category": "OTHER",
54               "key": "E3",
55               "name": "foo",
56             },
57           ],
58           "key": "A3",
59         },
60       ]
61     }
62     graph="issues"
63     graphs={
64       [
65         [
66           {
67             "data": [
68               {
69                 "x": 2016-10-26T10:17:29.000Z,
70                 "y": 2286,
71               },
72               {
73                 "x": 2016-10-27T10:21:15.000Z,
74                 "y": 1749,
75               },
76               {
77                 "x": 2016-10-27T14:33:50.000Z,
78                 "y": 500,
79               },
80             ],
81             "name": "code_smells",
82             "translatedName": "Code Smells",
83             "type": "INT",
84           },
85         ],
86       ]
87     }
88     leakPeriodDate={2017-05-16T11:50:02.000Z}
89     loading={false}
90     measuresHistory={
91       [
92         {
93           "history": [
94             {
95               "date": 2016-10-26T10:17:29.000Z,
96               "value": "2286",
97             },
98             {
99               "date": 2016-10-27T10:21:15.000Z,
100               "value": "1749",
101             },
102             {
103               "date": 2016-10-27T14:33:50.000Z,
104               "value": "500",
105             },
106           ],
107           "metric": "code_smells",
108         },
109       ]
110     }
111     removeCustomMetric={[Function]}
112     series={
113       [
114         {
115           "data": [
116             {
117               "x": 2016-10-26T10:17:29.000Z,
118               "y": 2286,
119             },
120             {
121               "x": 2016-10-27T10:21:15.000Z,
122               "y": 1749,
123             },
124             {
125               "x": 2016-10-27T14:33:50.000Z,
126               "y": 500,
127             },
128           ],
129           "name": "code_smells",
130           "translatedName": "Code Smells",
131           "type": "INT",
132         },
133       ]
134     }
135     updateGraphZoom={[Function]}
136     updateSelectedDate={[Function]}
137   />
138   <GraphsZoom
139     leakPeriodDate={2017-05-16T11:50:02.000Z}
140     loading={false}
141     metricsType="INT"
142     series={
143       [
144         {
145           "data": [
146             {
147               "x": 2016-10-26T10:17:29.000Z,
148               "y": 2286,
149             },
150             {
151               "x": 2016-10-27T10:21:15.000Z,
152               "y": 1749,
153             },
154             {
155               "x": 2016-10-27T14:33:50.000Z,
156               "y": 500,
157             },
158           ],
159           "name": "code_smells",
160           "translatedName": "Code Smells",
161           "type": "INT",
162         },
163       ]
164     }
165     showAreas={false}
166     updateGraphZoom={[Function]}
167   />
168 </div>
169 `;
170
171 exports[`should render correctly with filter history on dates 1`] = `
172 {
173   "graphEndDate": undefined,
174   "graphStartDate": 2016-10-27T10:21:15.000Z,
175   "graphs": [
176     [
177       {
178         "data": [
179           {
180             "x": 2016-10-26T10:17:29.000Z,
181             "y": 2286,
182           },
183           {
184             "x": 2016-10-27T10:21:15.000Z,
185             "y": 1749,
186           },
187           {
188             "x": 2016-10-27T14:33:50.000Z,
189             "y": 500,
190           },
191         ],
192         "name": "code_smells",
193         "translatedName": "Code Smells",
194         "type": "INT",
195       },
196     ],
197   ],
198   "series": [
199     {
200       "data": [
201         {
202           "x": 2016-10-26T10:17:29.000Z,
203           "y": 2286,
204         },
205         {
206           "x": 2016-10-27T10:21:15.000Z,
207           "y": 1749,
208         },
209         {
210           "x": 2016-10-27T14:33:50.000Z,
211           "y": 500,
212         },
213       ],
214       "name": "code_smells",
215       "translatedName": "Code Smells",
216       "type": "INT",
217     },
218   ],
219 }
220 `;