]> source.dussan.org Git - sonarqube.git/blob
b817fd80c5ebb2b904d7ed8a79e096abce0ff57b
[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       Array [
13         Object {
14           "id": "1",
15           "key": "code_smells",
16           "name": "Code Smells",
17           "type": "INT",
18         },
19       ]
20     }
21     removeCustomMetric={[Function]}
22     selectedMetrics={Array []}
23     updateGraph={[Function]}
24   />
25   <GraphsHistory
26     analyses={
27       Array [
28         Object {
29           "date": 2016-10-27T14:33:50.000Z,
30           "events": Array [
31             Object {
32               "category": "VERSION",
33               "key": "E1",
34               "name": "6.5-SNAPSHOT",
35             },
36           ],
37           "key": "A1",
38         },
39         Object {
40           "date": 2016-10-27T10:21:15.000Z,
41           "events": Array [],
42           "key": "A2",
43         },
44         Object {
45           "date": 2016-10-26T10:17:29.000Z,
46           "events": Array [
47             Object {
48               "category": "VERSION",
49               "key": "E2",
50               "name": "6.4",
51             },
52             Object {
53               "category": "OTHER",
54               "key": "E3",
55               "name": "foo",
56             },
57           ],
58           "key": "A3",
59         },
60       ]
61     }
62     graph="issues"
63     graphs={
64       Array [
65         Array [
66           Object {
67             "data": Array [
68               Object {
69                 "x": 2016-10-26T10:17:29.000Z,
70                 "y": 2286,
71               },
72               Object {
73                 "x": 2016-10-27T10:21:15.000Z,
74                 "y": 1749,
75               },
76               Object {
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       Array [
92         Object {
93           "history": Array [
94             Object {
95               "date": 2016-10-26T10:17:29.000Z,
96               "value": "2286",
97             },
98             Object {
99               "date": 2016-10-27T10:21:15.000Z,
100               "value": "1749",
101             },
102             Object {
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       Array [
114         Object {
115           "data": Array [
116             Object {
117               "x": 2016-10-26T10:17:29.000Z,
118               "y": 2286,
119             },
120             Object {
121               "x": 2016-10-27T10:21:15.000Z,
122               "y": 1749,
123             },
124             Object {
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       Array [
144         Object {
145           "data": Array [
146             Object {
147               "x": 2016-10-26T10:17:29.000Z,
148               "y": 2286,
149             },
150             Object {
151               "x": 2016-10-27T10:21:15.000Z,
152               "y": 1749,
153             },
154             Object {
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 Object {
173   "graphEndDate": undefined,
174   "graphStartDate": 2016-10-27T10:21:15.000Z,
175   "graphs": Array [
176     Array [
177       Object {
178         "data": Array [
179           Object {
180             "x": 2016-10-26T10:17:29.000Z,
181             "y": 2286,
182           },
183           Object {
184             "x": 2016-10-27T10:21:15.000Z,
185             "y": 1749,
186           },
187           Object {
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": Array [
199     Object {
200       "data": Array [
201         Object {
202           "x": 2016-10-26T10:17:29.000Z,
203           "y": 2286,
204         },
205         Object {
206           "x": 2016-10-27T10:21:15.000Z,
207           "y": 1749,
208         },
209         Object {
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 `;