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